Steve, you are the absolute S^^^! I watched all your tutorials on MySQL and built the back side for my site. Now I'm watching the PHP videos in order to learn how to tie it into my front side. If weren't for your calm, precise manner, I wouldn't have been able to get this far. You are helping to make a dream come true. THANK YOU!!!
@LoneWolf-gl8sk3 жыл бұрын
thanks prof. I tried to google about those 5 properties that each file have. didn't find any until I found this video. thank you again.
@SteveGriffith-Prof3ssorSt3v33 жыл бұрын
Php.net is the official documentation site. It has everything you need.
@eduardoranierosilva3 жыл бұрын
the "enctype="multipart/form-data"" really saved me, thanks!!!
@seancolaco95872 жыл бұрын
Amazing explanation!!
@skrumb3 жыл бұрын
Love your commentary lad!
@ΕγωΕγω-ρ6ω Жыл бұрын
Thank you for sharing this amazing video with us . I would like to ask you where should i save the uploaded pictures,files on mac os ?can i create folder wherever i want?Thank you
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
Yes. you can create folders whereever you want and call them any valid folder name. Move your files from the tmp folder into your own once they are uploaded.
@gabrielgodoy78462 жыл бұрын
Excellent videos!!! What keyboard do you use?
@SteveGriffith-Prof3ssorSt3v32 жыл бұрын
I've used many different keyboards. Most videos are either with the MacBook Pro built-in keyboards or an Apple usb one.
@gabrielgodoy78462 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Thanks for answering... when I can, I'm going to buy a Macbook :) On the other hand, I love the way you explain. I am now watching the PHP tutorial. Congratulations!!!
@hakami14262 жыл бұрын
So quick question, is the directory where the PHP saves the files to, technically the server? Bc I know a server is just a computer somewhere
@SteveGriffith-Prof3ssorSt3v32 жыл бұрын
The server is the computer where the web server runs. The web server is the program that handles all the requests and responses. The web server uses the PHP program to run the php scripts. PHP saves files in a folder on the server.
@rangel3l13 жыл бұрын
I have a form and I would like only files of the type gif can be accepted, how can I do that in an easy way of course.
@SteveGriffith-Prof3ssorSt3v33 жыл бұрын
The type property of the uploaded file gives you the mime-type. So "image/gif" is the mime type you are looking for.
@rootdev76444 жыл бұрын
What about with arrays n multi file uploads??
@SteveGriffith-Prof3ssorSt3v34 жыл бұрын
$_FILES is a multi-dimensional array. Each uploaded file has an entry with all those 5 properties.
@aadil42364 жыл бұрын
I'm uploading a file and its error status is 0 which mean all is well but i can't view that file in that temp_name location in xamp This is the location : C:\xamp\tmp\php6855.tmp I checked that location in file explorer but i can see my uploaded file there Is it normal..?
@SteveGriffith-Prof3ssorSt3v34 жыл бұрын
The temp files are only kept as long as needed. When your script finishes running the temp file can be deleted. If you do nothing with the file it will definitely disappear right away
@aadil42364 жыл бұрын
But I'm using move_uploded_file() to move it into different directory right away (I'm using absolute path to move the file) , but its showing an error of "cannot move to (provided location)" and I'm printing the global file array variable afterwards to check for the error number it still gives 0 i don't know what am i doing wrong.
@aadil42364 жыл бұрын
I even checked the owner of the directory and php user by echoing out `whoami`; the owner of the directory and the php user are same and i gave the user write permission in that directory but it still doesn't work.
@quicksketch16174 жыл бұрын
How can I solve with node.js, any link or tutorial to search?
@SteveGriffith-Prof3ssorSt3v34 жыл бұрын
I have a video where I talk about doing an HTTP Request from Node to get a file, bringing it back and saving it on the server. It is a similar basic process as receiving one that is uploaded. kzbin.info/www/bejne/qJmaoKOMnql5g9E
@rasmitamaryam69792 жыл бұрын
thank you for the video, but ur animation slide is not good :)