Upload automatically after selecting the files

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Upload automatically after selecting the files

sylontime

Hi All

Is there any way to have the program to upload the selected files from the file prompt automatically without having the call the "Sumit" button? Works sort of like gmail.

 

Thank you

 

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Upload automatically after selecting the files

sylontime

Just Found the solution

http://www.brettle.com/ForumThreadView.aspx?thread=1068&pageindex=7

Sorry about the double post.

 

Thank you

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Upload automatically after selecting the files

Guest-1092

I have tried to add the code to the page

window.onload = function()
{
var multiFile = NeatUploadMultiFile.prototype.Controls["multiFileID"];
multiFile.OnFileQueued = function() { document.getElementById("formID").submit(); };
}

It post back to wonderfully, but when I try to use multiFiledId.Files to grab the selected files, it show zero records.

Am I missing something here ?

thx

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Upload automatically after selecting the files

Dean Brettle
Administrator
Are you using the latest version of NeatUpload? If you submit with a separate button, does it work properly? If you copy Demo.aspx and Demo.aspx.cs from NeatUpload-version/dotnet/app/Brettle.Web.NeatUpload/ into your own app, can you upload multiple files using the MultiFile controls on that page? --Dean
Loading...