This is my first post in a long time, glad to say I have gained a lot of experience in basic programming but I have got an issue, and remembered the great community here.
I am trying to code a gallery for my girlfriends website but I want everything automated, so I'm looking for using a multi file upload to allow her to select multiple files, the script will then upload them and add information to a database ready for further manipulation.
First of all I was going to use around 5 individual file fields and work from there, but then I came across the <input type=file multiple> form element. The problem is working from the data after its submitted, I understand that to access the data I use $_Files['file']['tmp_name'][0] to access the first file of the selection of files.
The problem starts when you don't enter any files and press upload, the standard !empty() tests or even using the ['errors'] selector to tell the script that nothing has been selected, even using the upload file size but PHP doesn't seem to have a straitforward way of checking this.
I am very much a person who want to know and understand how a script works, my coding may not be the greatest but I understand what its doing, I have looked all over the internet but it just keeps saying to use JavaScript uploaders etc, I am starting to use bits of jQuery but would like the hard coding in the PHP file anyway. My desire to write and understand the scripts makes me feel like I've cheated by using other peoples work or alternative scripting.
Thanks.
Sorry if there are mistakes I wrote this on my phone...