Question:
How to upload image from a user to the server via html page?
?
2010-09-15 19:16:07 UTC
How to upload image from a user to the server via html page?

I've found this code:



But, of course, that's not enough anyway. Second of all, it should upload a file WITHOUT pressing button Submit. ONCE, THE FILE IS CHOSEN, IT STARTS UPLOADING TO THE SERVER AUTOMATICALLY.
If it helps, the folder localhost/images/ for file storage would be fine.
Once it's uploaded it says OK or error on the next page.

Thank you.
Three answers:
2010-09-15 22:38:13 UTC
Uploading Files with PHP: http://php.about.com/od/advancedphp/ss/php_file_upload.htm



PHP - File Upload: HTML Form: http://www.tizag.com/phpT/fileupload.php



PHP File Upload: http://www.w3schools.com/PHP/php_file_upload.asp



PHP Upload Systems Scripts: http://www.hotscripts.com/category/php/scripts-programs/file-manipulation/upload-systems/



Ron
Lorien
2016-04-08 13:13:24 UTC
For the best answers, search on this site https://shorturl.im/axs5E



Without the use of a scripting language like PHP and being allowed to use SMTP, you are stuck with using a client-side email form which is going to open the User's email program. The only way for you to get their images is for them to attach them as files to the email and click Send. I would change to a better host if you're not allowed user of server-side languages, databases, etc.. There are so many terrific FREE galleries program you could install that would make what you want to do a lot simpler. Ron
juliepelletier
2010-09-15 19:43:20 UTC
First and foremost you need to use a back-end scripting language such as PHP to receive the file.



As for the auto-submit, I haven't tested it but doubt most browser would allow it for security reasons.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...