Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

Upload File

Mar 26, 2014 10:26PM PDT

I am looking for a method to upload image files in ".jpg" format, limit the file size, rename the image based on user input, and store the resulting image in a folder for later download.

Discussion is locked

- Collapse -
Answer
You can write a PHP script that
Mar 28, 2014 1:38AM PDT

1. Prints a form on a page
2. Asks for a few details and a file
3. Checks that the size and file type is within parameters
4. Then saves the file on the server with the desired name
5. Sends you an email with a link to the uploaded file

You can search for tutorials on each of these items listed above.

Alternatively, you can look for an existing "file upload" script. Most of them do exactly that, maybe minus the emailing part.

Lastly, the simplest solution would be to use a file sharing service.

~Sovereign

- Collapse -
Answer
very easy to do this
Apr 2, 2014 3:03PM PDT

you can use : Uploadify. To learn more about Uploadify u can search it by google.
<span id="INSERTION_MARKER">http://www.uploadify.com/