Currently, I am working on file uploading using asp.net:
<asp:FileUpload ID="Upload" runat="server" /> <!-- HTML -->
Upload.PostedFile.SaveAs(physicalPath + "newAvatarTemp.png"); // codebehind
However, I find it frustrating when pages need to be refreshed for tasks like this. I would prefer to utilize javascript for this functionality. After researching online, I noticed that many people use SWF + javascript for file uploading, but I want to steer clear of using flash. I am aiming for a smoother user experience, similar to the file uploader in Gmail.
What steps should I take to achieve this? Is it feasible to implement file uploading using ajax (I have come across posts suggesting that ajax cannot handle file uploading)? If not, how does Gmail manage to do it?
If ajax is not suitable for file uploading, what other options can I explore to enhance the user experience of my file upload process? I am relatively new to web technologies, so it is possible that I am overlooking a simple solution.