I am using a video CMS that has bulk files upload function. The way it works is: - You upload a .xml file with the current content:
<?xml version="1.0" encoding="UTF-8"?>
<meta>
<video>
<filename>name1.mp4</filename>
</video>
<video>
<filename>name2.mp4</filename>
</video>
</meta>
- It sends an ajax request to "ajax/upload"
- Then it returns some data (tmp_name and etc)
What I want to do is to generate a xml file with two filename values passed. (Eg. Have two input fields and with: name1.mp4 and name2.mp4, then generate a xml with this data by clicking a button or something else) After that what I really want to do is simulate like the file was uploaded by the user, because I need to access this data inside my ajax request:
$_FILES['upload']['size']
$_FILES['upload']['tmp_name']
$_FILES['upload']['name']
Current file upload input:
<input class="uploader" type="file" name="upload" data-url="../ajax/upload/" data-text="Browse" data-limit="102000000" data-type="library" data-prepopulate="null">