If not selected then show an error. Then I check if file already exists in the uploads directory then I show message — file already exists. Otherwise I upload the file into uploads directory under project directory. If you try to upload file without selecting any file then you would see error message Please choose a file. Any pseudo code, examples, or tutorials would be greatly appreciated. Improve this question. I have uploaded the file using php. But it goes to the php page. I want to implement it remaining on the same page.
Add a comment. Active Oldest Votes. Improve this answer. Abid Hussain Abid Hussain 7, 2 2 gold badges 31 31 silver badges 50 50 bronze badges. I love this thank you. There are too many people out there trying to make things do all sorts of unnecessary stuff.
This is simple and works thank you! Please enter comment. Thoughts of the day. A perfection of means, and confusion of aims, seems to be our main problem Read more.
Sell your product online. Do you want to sell products online with no extra cost? Send your details, our executive will contact you Email:. Tutorial On Request. How to pass dynamic key in jquery ajax?
Checkbox validation in javascript and retrieve its value in PHP. Find the count of tallest candle that can be blown out. Algorithm in php to find minimum and maximum values of an array using single loop. John Oluwaseyi Said Please, how can I add another file field into the code?
May 28, at AM. Djalel Said CodexWorld Said Fayzo Said Srijan Said Turheeb Said Waseemshaz Said Can you please make a tutorial of Facebook messenger integration? Thank you January 19, at PM.
0コメント