Normally, to upload a file, it would be two-steps process – select a file and then confirm upload. I am working on uploading profile picture. Since profile pic is usually small, I want to reduce mouse-clicks for my users by making the file upload to start upon file selection. Please suggest good, and perhaps common, ways to achieve this (I would also like to learn their pitfalls, if any). Thanks.
Share
The
changeevent will fire when a file is selected from a file upload field. The value of the field will be''if no file is selected (field is cleared).Is this a good idea? Questionable. Automatically submitting a form if the user doesn’t expect it may have a negative impact.