I am working with OPENUI5, PHP and MYSQL and I have a problem.
I have a call view (App.view.xml) that calls a frament when I press a button (CreateDialog.fragment.xml). This fragment contains basically a SimpleForm with 2 fields (FileUpload and a TextArea).
<f:SimpleForm
id="FormChange480_Trial"
maxContainerCols="1"
editable="true"
layout="ResponsiveGridLayout"
labelSpanL="2"
labelSpanM="2"
labelSpanXL="3"
emptySpanL="1"
emptySpanM="1"
emptySpanXL="1"
columnsL="1"
columnsM="1"
columnsXL="1"
class="editableForm"
>
<f:content>
<u:FileUploader
name="adjunto"
width="100%"
enabled="true"
id="attached"
tooltip="Select the file"
style="Emphasized"
placeholder="Choose a file for Upload..."
mimeType="image/png,image/jpeg,application/pdf"
fileType="pdf,jpeg,png"
change="chequeo2"
/>
</f:content>
</f:SimpleForm>
</VBox>
<beginButton>
<Button text="{i18n>Create}" id="Crear_Guardar" icon="sap-icon://save" press="onDialogCreateButton1" />
</beginButton>
When I fill the form i click on the create button, I receive in the controller (App.controller.js), the value of the TextArea plant.getValue (), and the name of the file subido attached.getValue ().
At that moment, I call a file "create.php" using AJAX.
My question is: How do I save the file? Currently in the PHP file I do not receive the file print_r ($ _ FILES); - > empty
Thanks