PHP Upload Multiple Files Array Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

We miss this kind of tutorials, Adam.

skatalin
Автор

This tutorial is great, Thank you. I got stuck a little with the whole "Size" issue because I was in hurry and i didn't pay attention to your explanation but finally i got it right and it worked perfectly for me, Keep it on man.

Moatazaitoun
Автор

Thanks man, you explained it so much better than any website I've found

willempiekip
Автор

thank u Adam u are the best teacher and youtuber...

FeyLong
Автор

Excellent, this was exactly what I was looking for. Thanks again Adam. I created something similar to upload images to my server but i was converting them to base64 because I didn't know how to do it this way. I will change it very soon as I read that base64 increases the size of the file in 33% aprox.

Contreras
Автор

Thank you Adam.  I just begin study about php.

dccdark
Автор

Great video! Very helpful. Thank you Adam for all you hard work. 

LeslieVMooreJr
Автор

Thanks for the videos! 
By the way - to refresh filezilla folder you can click in it and press F5. 

normalins
Автор

Hi Adam, I would like to thank you very much. Your Englsih is clearly spoken in nice bariton. And the codes work...! My question is : How could the 3 files (3 peices .jpg) be saved in database and displayed and also edited if wrong .jpg has been chosen?

Greeting from Java, Indonesia.

aouxswantoro
Автор

Great tutorial. But i'm facing a little problem. Now i want to insert the filenames into my table, but when i do, i get array in the column? how can i get each filename?

- Danni

danniolsen
Автор

Adam, I've been following your vids for years and appreciate everything you've brought to the community.  I was wondering if you could somehow shed some light to make this work in WordPress.  I'm trying to develop a plugin in which I need to have a way to upload multiple files just as you've done here.  My problem is that everything changes with Wordpress.  Either way, thanks much for this video.

ultrageekChris
Автор

THANK you Adam for all of your good workk!

gaboguit
Автор

Adam Khoury Instead of having multiple file fields, how is it done where the user can select multiple files simultaneously in one single file viewer?  One example of selecting multiple files at once is on FaceBook when selecting photos to be uploaded - only one window pops up, but the user can select multiple files by holding shift or ctrl.  I've tried to select multiple files in forms I've made, but even holding shift or ctrl still only allows me to select one file at a time.

michaelarsenault
Автор

thanks for sharing it, I have a question, if I want to upload a file which its size is 512mb or 1GB what can I do? thanks!

egm
Автор

Hi Adam,
First, Thanks much for this nice video! It works nicely on desktop, but not on device "iPhone"
Any idea? Thanks,

brando
Автор

Quick tip for FileZilla: Rightclick (in target folder) -> refresh.

Nabstylez
Автор

I have a form to add sheet music to a database. I would like to upload an mp3 and a sample pdf file of the piece. The mp3 file should be moved to a folder named audio, the pfd to a folder named pdf_samples. How can I define a different destination for the files?

Thanks!

upperlip
Автор

Great video.  Can you advise how to limit the TYPE of files that can be uploaded.  I dont want someone to upload an exe or ini file.  I need to keep them to jpg, jpeg, gif, doc, docx and pdf.  I attempted this: if ($type_array= "jpg" && $type_array= "gif" so on.  But the long and short is, its still allowing files to upload regardless of their type.

randaza
Автор

you wont believe how this vid has helped me with something i was struggling with for 4 hrs, it was one of those LIGHT BULB, so many thanx for that :).

on a side note, i currently have multi-upload-file which on each time there is a function that runs to determine if the file is allowed to be uploaded or not and then move it + displaying a msg to flag what was successfully uploaded and what was not.

the problem is that the result msg work as intended only when all input fields have a file in them, but when there is only a one uploaded file the result msg get repeated, is there a solution for that ?

Nemlicious
Автор

After I upload several files. What if I want to upload 1 file after the 1st time of multiple files? First time, I upload four files from four inputs. The second time, I uploaded one. But because I have line of code (w/ file_exist()), the second time around spits out "upload success" and "file already exist". Not sure why. I'm assuming the other three input tags outputs = "." or "..", and that's why php assumes the file already exist. Can you help me out here?

Chris-scrx