Results 1 to 1 of 1
Jul 1, 2004, 07:46 #1
- Join Date
- Mar 2004
- united states
- 0 Post(s)
- 0 Thread(s)
some questions regarding the uploading of images
I am trying to write some code that will allow the user to upload an image and then see a preview of the image in the browser.
I was wondering whether it was possible to restrict the file types that the user will be able to choose from in the file selection dialog that is opened when the tag <input type="file"> is provided. I would like to restrict the selection to: gif, jpeg, jpg, png, bmp.
Once a selection is made, the path to the local file can be found in the tag's value attribute. I would like to display the selected image in a preview.
If all this is not possible, and must interact with the server, is it possible to display a progress bar that will show the progress of the image being uploaded? If so, I would appreciate if someone could point me to an article or some code snippet.
thanks in advance