Great Video !! If anyone is facing an issue where files are not seen in uploads folder on a Mac then go to uploads folder , right click ->get info and set permissions to read and write
@Dani_Krossing
6 жыл бұрын
I'll just go ahead and pin this comment for others to see :) and thank you for sharing, I don't use Mac so I wouldn't have been able to figure this out.
@amitrokade1140
6 жыл бұрын
Welcome :)
@Stephlovesummer
6 жыл бұрын
You just saved my life
@nillsinrodrigues7533
6 жыл бұрын
.
@balamurugans5845
6 жыл бұрын
I am facing an issue like when I click upload button it's going to upload.php. But the file is not in uploads folder and there is no any successful msg. Please hlp me
@coookiessssss
4 жыл бұрын
thank you! I have been struggling with this for three days. Followed your video and it works ! (No idea why)
@vergilkelley5078
3 жыл бұрын
Thanks to content providers like you I have a new career as a web developer at the ripe age of 54 lol. Can't thank you enough for all the free content and flawless delivery. Your channel is truly amazing and inspiring!
@waqarahmad7125
2 жыл бұрын
thats amazing
@chessmasterstream8953
Жыл бұрын
I'm 29 and moving in same direction. After an injury im changing my carreer. And seeing you at this age i think i can do it as well. Just a lot of stuff to learn. Scary.
@XxxclusiveReviews
Жыл бұрын
I had some young chump female ask why I want to do IT.... LIKE I DONT BELONG HERE... this witch needs to know started before she could suck on a baby bottle.... now I'm knee deep... and learning it all... once done I will be a full stack... I'm now I'm a honor student... stfu brat
@ricardoalsoa
4 жыл бұрын
Always good videos. I'm learning too much with you. Gratitude to share your knowledge.
@nareshramini1796
5 жыл бұрын
Please explain the function uniqid(" ", true) Confused on why should you supply empty string as first parameter and boolean true as another 2nd parameter parameter...what these parameters gotta do or what are these parameters instructing uniqid() function to do by taking them?? Btw great tut!
@matthiasschull408
3 жыл бұрын
Really great tutorial and very well explained
@ayeshaimtiaz4557
2 жыл бұрын
I LOVED THIS VIDEO.....THANKU SO MUCH
@marcohama1
5 жыл бұрын
very good, thank you!
@Sumyyassan7044
2 жыл бұрын
Hi pls can u help us or recommend any tutorial on how to design and implement remote control using php
@123dmiguel
7 жыл бұрын
Thanks a lot for the video! very very usefull
@henrycodingstack6952
7 жыл бұрын
thanks nice video.but how do you create a download script for files uploaded,and how do you display the files uploaded by users on your index.php page?
@mourshiedshoshy
5 жыл бұрын
Thanks
@parthivnaik9141
7 жыл бұрын
which function can be used to get the contents before ' . ' ( I mean as 'end' function gets content after the dot(.) , which function gets contents before the dot( . ) ?) Waiting for your reply.
@e8mile
6 жыл бұрын
reset()
@francismata4492
6 жыл бұрын
Sir can you do a tutorial on how to make a quiz with images as part of questions. Thanks in advance.
@bintoygaming
6 жыл бұрын
God Bless you Sir =)
@nareshramini1796
5 жыл бұрын
create function move_uploaded_file()?? Is it by mistake uttered?? or is it not php built in function that accepts two parameters (default,new_location)??I'm confused!
@atrichakraborty6897
4 жыл бұрын
I am facing a problem with the function move_uploaded_file() the files are not getting uploaded .. and I am a Linux users .. so can u have any suggestions ??
@issuefixer3386
2 жыл бұрын
How can we block the user from uploading image which has more than 250px of height and more than 250px of width? Can anyone please help me about this? Thank you.
@DavisTibbz
3 жыл бұрын
Hmmm....that nested "if" block (from line 16) looks frightening ... A cleaner alternative is to use single-line, independent, "if . . . " statements with "exit("error message") if given condition is FALSE. See his modified example below: if ($fileSize > MAXLIMIT ) exit("File is too large."); //Replace MAXLIMIT with an integer value. if ($fileError !==0) exit ("Error occurred. Upload failed"); if(in_array($fileActualExt, $allowed)) === FALSE) exit("File type not allowed"); else { // everything is OK //... Continue with your code, as shown in video, from line 19-22 //.. }
@quatricise
3 жыл бұрын
Yes, I was thinking the same but had no idea how to refactor it. Thanks, i didnt know about the exit()
@martinrombach2666
2 жыл бұрын
True. That's pretty ugly ass code.
@thasan4509
7 жыл бұрын
for developers: never trust what user sends, questionable everything what user sends. On this video its not problem, but what if user sends file with name ".jpg" to your script, or "../index.php" or "index.php .jpg" ( means newline character) if you use blacklist to disallow some file extensions uploads, check what extensions are executable on server config; What if someone uploads "innocentfile.phtml"? (yes, phtml is executable on default apache2+php setup)
@Scott-zi7xv
7 жыл бұрын
It'll work.
@slapmyfunkybass
6 жыл бұрын
This doesn’t make any sense, though hackers can upload executables then run it on the server (technically they couldn’t because they wouldn’t have permissions) the file name here is renamed and the extension is checked for. On top of that you have pointed the file to a location on the server so it won’t go anywhere else. The method shown here is fine in real world production.
@ghaliaalkulaibi1855
6 жыл бұрын
but he used the whitelist filtering which is better than the blacklist .. so .phtml will not be accepted because it's not allowed
@sandortoth5269
5 жыл бұрын
For a beginner tutorial, this is alright. But Thasan is right, for a production website, you must implement solutions against potential hacker attacks. Let's say i have a png image and i replace the extension from "png" to "gif". That doesn't make my png image being a gif image. The image is still a png image, because the name of any file (including extension) doesn't tell anything of the file. Therefor you must check the header of the uploaded image. Hint: check out this php function: exif_imagetype
@sebspokestop
7 жыл бұрын
Flawless delivery - this was absolutely outstanding, I cannot thank you enough!
@Dani_Krossing
7 жыл бұрын
Thank you :)
@Cocinaconparrilla
5 жыл бұрын
Non-PHP-Programmers: PHP SUCKS! *But they watched this video to see how to create a File Uploader in PHP And they still Complain that PHP Sucks. (320K views and very sure most of the viewers have talked negatively about PHP)
@akashgola2153
6 ай бұрын
Another Great Upload even though it's from past hehe. Also i am noticing that in this videos ur doing quite a bit of nesting which u clearly said isn't a very good thing to do in ur recent uploads . Now i can actually see why. keep updating us
@DsNHira
3 жыл бұрын
The topic is hard for a new php coder like me. But the entire video is well explained with a great detail. I think I couldn't learn and do in a proper way without your nice tutorial. Love and respect.
@aklenablmasry
6 жыл бұрын
honestly this is my first time ever to comment on youtube video so i want to thank you for the best easy to understand ever for file uploading thanks!
@karunakarans4296
2 жыл бұрын
7:26 Parse error :syntax error, unexpected token " ) " , expecting variable or "{" Or "$" In C:\Users\ELCOT\Desktop\setup xampp\htdocs\php_program\upload.php on line 4 (Line 4 in upload.php is👉👉👉print_r($) What does it mean 😶.. I'm begginer.. What I should do now bro!?
@alainperez8579
5 жыл бұрын
This has been the best PHP tutorial I have ever watched. Thank you
@egetomaitelope3854
2 жыл бұрын
How can I preview the image before UPLOAD
@SketchyzGaming
7 жыл бұрын
When will the next PHP tutorial arrive? Could really use some knowledge on how to create profile pages, specific data/descriptions/profile pictures etc. for specific users :) It would help a lot!
@Dani_Krossing
7 жыл бұрын
I got a bit behind todays episode because of other plans, but I am planning on recording and uploading an episode today on creating profile images for users :)
@minegamer369
4 жыл бұрын
I don’t think your gonna answer this but how do I prevent a image based attack when users upload photos when users embed code on it how do I prevent it from running
@AliciaGuitar
4 жыл бұрын
I'm pretty well convinced there is no way to completely secure php uploads. Found a decent article on stackoverflow stackoverflow.com/questions/38509334/full-secure-image-upload-script#
@starbloods0013
2 жыл бұрын
Hi, The code works but only for files of size 2mb and less (I increased the size limit from 1000000 to 1000000000) I keep gettin a "There was an error uploading" error from the code Any solutions??
@alexanderuranbirkin3379
7 жыл бұрын
Daniel thank you very much!
@Dani_Krossing
7 жыл бұрын
You are welcome :)
@Cliffhouse97
2 жыл бұрын
Dani, this has been a very helpful tutorial that I've used in a project I'm working on. It works wonderfully. However, in addition to uploading a file to a separate folder in my root directory , I'd like to be able to insert the file path of the uploaded file into a table I've created into a mysql database. I'm struggling to sort out how to code that into my php file.
@thaotruong7035
2 жыл бұрын
hello sir, may you help me with this trouble, i'm trying to upload my image files into my website image folder, how can I connect it? thank you in advance
@jaivermateus554
Жыл бұрын
thanks for the content it's really useful, but i have one question, what happens if i dont use the "$allowed"? my system will allow all kind of files? and if want to add another extension like for example .pkt , I just have to add it to the allowed array? hope someone can help me with this
@nanayeboah3287
3 жыл бұрын
Why am I just discovering this channel? Been searching for tutors like this. He explains so well to my very best understanding.
@ritamjha6080
7 жыл бұрын
very helpful vedio..nice step by step description Thankyou!! and please create a vedio on " how to upload vedio through a web page in database or some folder" including back end programming.
@xtordngy
5 жыл бұрын
Backend programming like a dashboard
@ben-q2d
4 жыл бұрын
To check the file type, is there any reason why you can't just use the provided data from the form? (in this example $filetype)
@diviiniity6529
7 жыл бұрын
These tutorials are amazing, I used to only do HTML and code boring website, but know thanks to you, I can do all of these fun stuff! Thanks! Keep up the good work
@thaotruong7035
2 жыл бұрын
hello sir, may you help me with this trouble, i'm trying to upload my image files into my website image folder, how can I connect it? thank you in advance
@Wiroue
5 жыл бұрын
If you have problem and cant upload the image to folder and you are using linux, you most likely don't have permission due htdocs folder being owned by root. How to set permission: $sudo chmod -R 777 /opt/lampp/htdocs then give user permission: $sudo chown -R username:groupname /opt/lampp/htdocs note: to check your username and groupname use: $whoami $id -gn this will give you permission to upload files to folder if the files are not to big, otherwise change upload_max_size in php.ini config file
@shevitza
7 жыл бұрын
Very usefull tutorial, thanks!
@wendysturd
5 жыл бұрын
This page isn’t working feedmememes.000webhostapp.com is currently unable to handle this request. HTTP ERROR 500 This is what I got when it is uploaded to my dns.
@maniacgear7258
3 жыл бұрын
Hi there, I recommend going through the final code part by part and remove each line with CTRL + / when highlighted, then view this in xxamp or mamp and carry on trying until the error disappears. This is what worked for me, and if it works for you let me now. Sorry for a 1 year late reply, hope I'm still helping!
@curtturdle5661
7 жыл бұрын
this is missing information, like changing folder permissions to allow uploads
@bishoy437
7 жыл бұрын
How to change these permissions on linux?
@bodake2557
7 жыл бұрын
on your own box or on a hosting service?
@ben_jammin242
6 жыл бұрын
Curt Turdle just the one thing really :)
@worldaviation4k
6 жыл бұрын
Great video, 1 question: I wanted to upload videos to my private section but have the thumbnail and download link into the public side. So then they click download and the file path is in the private section. Thanks very much
@aghahusnain4424
4 жыл бұрын
Best tutorial ever. Genuinely saved me hours of time. I dont usually comment on videos, but had to based on how comprehensively the tutorial was posted. Thanks alot for posting!!
@daniellajohansson
7 жыл бұрын
Just a shout out to the Ubuntu people. If you get uploadsuccess but no img in the folder...check your rights.
@keeper31796
7 жыл бұрын
THANK YOU SO MUCH. I have been trying to figure out why this wasn't working for like 2 hours.
@curtis4621
7 жыл бұрын
how did you go abt it
@keeper31796
7 жыл бұрын
ls -la on the folder it is uploading to. The output will be something along the lines of drwxr-wr-w most likely, this means it is a directory (d) the owner of the file has read (r), write (w) and execute (x) permissions. then you will see a number next to that, then the owner of the folder/file. If the owner is not PHP or something similar you can change the owner or change the permissions, changing permissions can be done like so, "chmod 775 ". You may need to use 777 instead of 775 but be aware that this means that anything that can gain access to that folder will have read, write, and execute access. If you have more questions let me know.
@curtis4621
7 жыл бұрын
thanks... however the uploaded files won't show even after changing permissions, what could be wrong??
@keeper31796
7 жыл бұрын
what is the output from ls -la on that folder
@sudosai
4 жыл бұрын
[For Linux users] ::: If you are having trouble transferring the uploaded file to the uploads folder execute the following in terminal (using superuser privileges if necessary) $ chmod 777 some_path/uploads
@smk751
2 жыл бұрын
Thanks for this and thanks for the tutorial, but have done this and it still doesn't work
@mladenmladenov7835
7 жыл бұрын
Thanks for this episode, very good series as well! Thank you!
@fairydragonbreath9192
7 жыл бұрын
Are you going to show how to make something like an forum page? Like how you see people make comments here in KZitem.
@therealice
7 жыл бұрын
He already showed how to create a comment section, but a forum would be cool.
@Dani_Krossing
7 жыл бұрын
A forum page is planned for a future episode :)
@SoccerEFM
6 жыл бұрын
I am almost done creating my own forum in PHP/MySQL, if you follow all tutorials from mmtuts about creating a comment and login section, you can use that as a reference for creating your own forum :) I am so thankfull to mmtuts, im really addicted to PHP now haha
@yogitasinkar5979
6 жыл бұрын
SoccerEFM Hey, can you plz point out the videos where he covered comments?
@oliversmith7097
3 жыл бұрын
Just a tip: your file extension type is checking just the name of the file - it doesn't mean it's an actual image file. Instead, I would recommend using mime_content_type() to check the actual file type. $filetype = mime_content_type($_FILES['file']['tmp_name']); if(($filetype !== 'image/png' && $filetype !== 'image/jpeg')){ die("Not a gif/jpeg/png"); }
@steve905
2 жыл бұрын
I was about to raise this same point.
@karimahussein9010
4 жыл бұрын
can't thank you enough for this tutorial
@techdedicated
6 жыл бұрын
I did everything you did exept on a live server and this doesn't work for me it send me to upload.php after I get done uploading
@Flo_Motion
6 жыл бұрын
Same, loads white page only on upload.php. Tried doing echo breaks, nothing shows up at all. I just want to upload files to my webserver with button click LOL. Hunter did you ever figure it out?
@danielchoo211
7 жыл бұрын
Sorry, I still cannot upload image into uploads folder. Why?
@ferozahmmed7401
6 жыл бұрын
move_uploaded_file("folder_name/"."file_name".$extension); I think it will be worked .
@sofasniperman
5 жыл бұрын
@@ferozahmmed7401 Don't forget the "." in between the file name and extension
@sofasniperman
3 жыл бұрын
@Visions Weekly Magazine i don't remember why I said that lol. Maybe the period was missing when I commented that and he added it in later?
@tahaazhari3369
4 жыл бұрын
i am unable to see the images in my folder but it is displaying upload successes in my URL i use windows OS (10 Pro)
@floydapungan5853
6 жыл бұрын
Hey man, thanks for this, But I'm having a problem, I have successfully uploaded the picture(?uploadsuccess) but one I checked the folder, it is empty, any Idea what the problem is?
@janeilalcano9258
4 жыл бұрын
Mine too, have you fixed the problem?
@garylam5353
4 жыл бұрын
@@janeilalcano9258 same error, did you fix it?
@garylam5353
4 жыл бұрын
@@janeilalcano9258 same error, did you fix it?
@valzzu
3 жыл бұрын
same here
@deepeddyrecords5933
3 жыл бұрын
If you're using Linux/UNIX, you may have to open up the permissions of your uploads folder. "chmod 777 uploads" to allow write access.
@mjosteam2098
3 жыл бұрын
Best Tutorial!! I recommend watching this channel!
@mjosteam2098
3 жыл бұрын
Hello Dani, Thanks for your Heart!! i subscribed to your Channel
@gamerunnerstaydon
5 жыл бұрын
Thank you for sharing your knowledge! 😊
@miquel2423
3 жыл бұрын
I have a question. I don't get it how the data inside the file got moved up all the way to $fileNewName. Was the data inside the uploaded file in the $fileExtension variable? and got it moved all the way to $fileNewName? Or is the file data inside the extension?
@stepniak18
4 жыл бұрын
I needed a hero and then I found this video. Thx, you saved me.
@Education-x6l
4 жыл бұрын
Followed everything correctly but my files can not be uploaded to my directory folder?? please help
@zargonkulas9342
4 жыл бұрын
its because of the in_array function remove the condition if(!in_array($fileActualExt,$allowed)){ dont know why this function not working
@ehrollbiteng3909
7 жыл бұрын
Daniel thank you for information
@ligmadick3401
4 жыл бұрын
Anyone else having trouble with the triple "=". Needed to switch to a double "=" to avoid error code 1.
@codeo4469
4 жыл бұрын
The code actually works for you? Did everything he did in the video and for some reason code is not working, it displays the error->You cannot upload files of this type.
@ligmadick3401
4 жыл бұрын
@@codeo4469 Feel free to share your source code and I will take a look at it. I will help you as far as I can.
@codeo4469
4 жыл бұрын
It is a copy of what he did, since im learning, i do copy of his code.. and when i submit an image, whatever kind of those placed in the allowed array, it prints out error
@valentinobahati9947
4 жыл бұрын
nice tutorial, try this too kzitem.info/news/bejne/qZxuyH6fi3SBnKQ
@triplea7071
4 жыл бұрын
i dont care if u believe in GOD or not........bro May ALLAH Bless and Reward you man. I wish u all the best and thanks for this. Super grateful.
@brentmarquez4157
6 жыл бұрын
for those that got an undefined index error for $_FILES - double check all syntax and code 'grammar'. I left out the dash in form-data in the enctype attribute in tags. mine read:
@jared4670
7 жыл бұрын
Hey Daniel, Just want to say thanks again for all the great tutorials! You really have helped me ALOT in getting off to a good programming start. I would just like to share a neat trick with you for the sublime editor. Press CTRL + H on your keyboard. This allows you to search for whatever you need and replace it with something else. Comes in particularly handy when you need to change " to '. Another one if you need to change something in your ENTIRE website is CTRL + SHIFT + F. You can then choose a directory and search for a particular string and of course have the ability to replace it as well. Peace!
@shadowcowmooo7415
2 жыл бұрын
when I click the upload button, the image uploads, but i am redirected to the upload.php file, any help?
@wadwdaaafefawfawawfawerog4335
7 жыл бұрын
Is this vulnereble in ANY way?
@wadwdaaafefawfawawfawerog4335
7 жыл бұрын
anyone?
@ben_jammin242
6 жыл бұрын
i would like to know myself. the only thing i could think of is that the files are now sitting in the uploads folder, visible to anyone who requests the directory, unless you disable directory browsing
@amoghdatar2726
6 жыл бұрын
Benjamin Brauer make an index.php file and write header(); Which takes back to front page so nobody can see the files inside the uploads folder
@donatkalman2636
4 жыл бұрын
Can you do this with dropbox or google drive?
@ayushgupta-ib2kl
7 жыл бұрын
sir why my images can't stored in my uploads folder can you solve this problem
@bishoy437
7 жыл бұрын
Me too I dont know why :(
@sunilreddy9297
6 жыл бұрын
Hey try this !! Go to xampp config , locate php.ini file find for upload_max_filesize variable and increase the size. Then your images will move to dest folder. This might help you !!
@jBeB1
6 жыл бұрын
it didnt work for me i get no error messages either would appreciate some help
@jBeB1
6 жыл бұрын
nvm i had a / behind the name of my upload folder
@florenzandreyhipolito4113
6 жыл бұрын
ayush gupta
@tamilanosai80
2 жыл бұрын
Hi, best videos Dani & pls make video for /// same script but image uploading location to FTP storage /// with FileZila FTP server or iis FTP server setup & finally FTP location image display on browser, thank you
@FellTheSky
3 жыл бұрын
this works fine, but I need to send an ID along with the file. So my php script knows what to do with the file... I've tried added a in the form. But when its received by the script, its empty. Things I've tried to get the ID input when sending the form (same method as the video, but with an extra input hidden ) : $data = json_decode(file_get_contents("php://input")); echo var_dump($data); //NULL echo var_dump($file); //(GETS the file, nothing about the ID) echo var_dump($_POST);//Gets ARRAY(2)[ID]=>String(0)='', [submit]=>String(0)=''] echo var_dump($_POST['submit']);//string(0) "" echo var_dump($_POST['id']);//string(0) "" Note: The input hidden has the ID in the form. I've checked the html code while running. It just happens that after submitting the form, its empty.
@patrickmaine7778
4 жыл бұрын
When I upload my website and go live, uploading to directory does not work anymore. Please help.
@miguelmesen1656
4 жыл бұрын
Did you check that your upload file is in the exact same folder as your index.php
@patrickmaine7778
4 жыл бұрын
@@miguelmesen1656 thank you for your respond. Upload folder is in the same folder to the php page that executes the code, it was working when im using localhost server, but when i uploaded it as live website, directory doesnt get any files anymore.
@patrickmaine7778
4 жыл бұрын
@@miguelmesen1656 i checked it and no files were uploaded. Is it possible that files went to other folder?
@MrCryoJack
3 жыл бұрын
Great video as always, but I just have a question. I am trying the same thing except I want to upload images to a different folder and save the new file path in the DB. The upload function doesn't seem to be working as the destination folder is in a different place. For the record, the destination folder is one folder up from the folder in which my upload function sits. '.. /data/images/profile-pics' Am I doing something wrong? (ubuntu 16.04)
@edison_kyama
2 жыл бұрын
I tried changing from '$fileDestination = 'uploads/'.$fileNameNew;' to '$fileDestination = '../'.$fileNameNew;' and it worked. For me, upload.php is in upload folder which is in htdocs folder so, changing that uploaded the file to htdocs folder. If it's just '$fileDestination = './'.$fileNameNew;', it would upload the file into the same folder as upload.php is in.
@marineoutsource
4 жыл бұрын
Hi Daniel, the error handling file is not working for files more than say 2MB (as per my setting) and am getting this type of message . . . Warning: POST Content-Length of 10498205 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 Got this error message how to get rid of it? (tried restating my XAMPP as suggested in the web but it didn't help). The error handling for file type works in some instances, as for example, i did't allow gif and it's give an error messages and even for allowed file that exceeds max size it gives me the error message correctly (i.e. I cannot upload file of this type) // but for say MP4 type and exceeds file limit it goes to, I guess generic error "WARNING" message . . . how to get rid of that ? please help / thanks
@Corzhy0
6 жыл бұрын
Could you please show us how to do this with ajax. Also the user can upload jpg and png images. So if the user changes an image and it is another jpg image for example, the png one will still be there. Your vids are great!!!!
@TV-vu9fg
5 жыл бұрын
For anyone who use mac gets the error "permission denied" can try this way, it worked. stackoverflow.com/questions/31915957/move-uploaded-file-failed-to-open-stream-permission-denied-mac
@soramakizushi
3 жыл бұрын
What if your php script is not in the root folder? Like, what if your upload.php file is in a folder in your root folder called scripts? When setting $fileDestination, do you set it equal to "../uploads/".$fileNameNew;" instead? Either way, the move_uploaded_file part just isn't working :(
@maroinealarabi1473
Жыл бұрын
when i print_r($file) on 7:17 i get this error Warning: Undefined array key "file" in C:\xampp\htdocs\cvResume\upload.php on line 7 can sb tells why
@gurulokesh6226
Жыл бұрын
Hi @Dani Krossing, Thanks for posting this helpful video. I know it is 6 years old video but still it is useful for me who is a beginner. But I am facing a problem, that the code is not throwing any error infact it shows upload success but I cannot see the uploaded in image in the target folder. I am using windows 10 , and I also tried changing permission of the target folder by setting to permission to everyone to allow of full control, change and read. But No luck. Can you please help me with this?
@prasantamedhi
3 жыл бұрын
Hi followed your guidelines but my upload button not responding.. i tried to troubleshoot by changing some ini file variable limits post file size limit, upload file size, memory file size limits.. but still no results kindly help me with this .. I'm using windows 10 system php version 7.14.19 win32 bc15 x86
@DamonMedekMusic
4 жыл бұрын
FOR MAC USERS make sure the uploads folder is read & writable. it is read only by default because many xampp folders are defaulted that way. Right click folder, click get info, unlock, change to read and write, now it should work. Thats why windows users are saying success while mac users are pulling their hair out.
@abin6909
3 жыл бұрын
YOU ARE A LIFE SAVER. I looked this up on another website and my brain got cooked but your explanation is so simple even my monkE brain could understand. Thank you so much.
@Lyokoheros-KLPXTV
4 жыл бұрын
Shouldn't you also get the current directory and us it as beginning of path in $fileDestination variable? In my case it didn't work without this.
@tutorials9441
4 жыл бұрын
how about multiple photos (2 or more photos)? Please someone help.
@tanzirroxy9161
4 жыл бұрын
Did you find any good solutions? I am looking for it too.
@ClarenceCho
7 ай бұрын
I think it is important to practice this steps of uploading image file into the backend server using mysqli and a mix of situation such as uploading with the ID of one user to ensure the image belongs to the user itself, by practicing the steps over and over again in different situation it will make it easier for a coder to have a flexible thinking in coding this out.
@mofufox5855
3 жыл бұрын
after i choose a photo and after i push the upload button I get the error: "Notice: Undefined index: file in C:\xampp\htdocs\php\php_day03\challenge\upload.php on line 5" Can someone help me out?
@m.x2314
2 жыл бұрын
Can I create a php code that makes user in my website upload a file , and then I want the database in my sql to tell me in the table who uploaded the file ??? Like I wanna know which user uploaded a file account ding to there username is it possible ? Please help , it’s for my grad project 🤏🏻💔💔💔🥲
@m.x2314
2 жыл бұрын
Can I create a php code that makes user in my website upload a file , and then I want the database in my sql to tell me in the table who uploaded the file ??? Like I wanna know which user uploaded a file account ding to there username is it possible ? Please help , it’s for my grad project 🤏🏻💔💔💔🥲
@rockroll4107
2 жыл бұрын
What if I upload "img1.jpeg.exe" to this website you created in the video? Does the "end()" get the ".exe" because it's the last '.' ? Thank you for the video!
@ElCalvoYT
Жыл бұрын
hi i just coppyied the code exactly like its on the video but it doesn't work my browser tells me that the upload.php file is not working
@dawitdereje2690
4 жыл бұрын
why can't we do isset($_POST['file'], to me it makes sense to check if the file is uploaded by checking the 'file' control not 'upload' control, could any one explain why is that so?
@Kakan124
6 жыл бұрын
I have this problem that when i click upload i get stuck on "upload.php?file=SweetChild.jpg&submit=" and nothing else happens. I check the uploads file and its empty. Help?
@5ashll303
Жыл бұрын
This wouldn't work if you wanted to upload the image to a database right? (using xampp and php my admin)
@kmssi1538
2 жыл бұрын
Great Tutorial!! BTW, i have a problem regarding the image, it has been uploaded into the uploads folder but no image has been showed into the page, its just an empty looking image, can anybody help?
@polyduralmusic8147
4 жыл бұрын
i get this message Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 3 Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 5 Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 6 Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 7 Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 8 Notice: Undefined index: file in /opt/lampp/htdocs/upload.php on line 9 you cannot upload this file type
@Waleed_Al-Haidary
3 жыл бұрын
Greate video as usual, I have a problem though and I need some help, I have a PHP application that allow upload of excel files into DB, I want the PHP to deny upload any excel file that has been edited or opened after imported from the source system, in other words, I want the PHP to accept only the excel files that has not been modified by any user since imported from the source system.
@EccentricMan
3 жыл бұрын
hey man, I hope you'll notice this, I have this project, multivendor marketplace, and I can't seem to implement the create product section where I can fetch images, price, and description into my index page. I hope you can help me with this project. Thank you.
@flint_escobar
3 жыл бұрын
Parse error: syntax error, unexpected variable "$fileName" in D:\Xampp\htdocs\upload.php on line 5 im getting this error pls help
@BaadiyaaTube
2 жыл бұрын
10Q so much. Everything goes right. But file size won't done. 10Q
@ahmedshehryar
2 жыл бұрын
The file isn't POSTed in a website I was making so the isset() returned false. What could be the common mistakes I could've made.
@johncovv
5 жыл бұрын
To display in the explorer only the files supported in php, include in the FILE INPUT ====> accept = ".jpg, .jpeg, .png, .gif"
Пікірлер: 1,1 М.