SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

Upload was cancelled Options
Balamut
#1 Posted : Wednesday, February 06, 2008 10:56:53 AM
Rank: Newbie

Groups: Registered

Joined: 2/6/2008
Posts: 1
I'm using UploadManager from Samples (SlickUpload 3.6) on IIS 6.0 It perfectly works. After set AutoUploadOnPostBack=False and OnClientClick=SlickUpload_Submit() the files > ~60KB not uploaded with "Upload was cancelled" result or reported as uploaded but size of file is 3-5 KB instead 100KB. All this changes work fine on IIS5.1 Maybe issue not in IIS, I only pay attention to this difference. The same result as locally as in network.
Tell me please, maybe you know in what there can be a problem?

ChrisHynes
#2 Posted : Friday, February 08, 2008 3:26:19 PM
Rank: Administration


Groups:

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

If you're using a server control's OnClientClick event to call SlickUpload_Submit(), you need to append ";return false;" to the end of the event so the page doesn't post back immediately. ASP.NET automatically uses a submit button type or adds code to post back the page to the end of the click handler, so returning false will keep that from happening. It would look like:

OnClientClick="SlickUpload_Submit();return false;"

Or, you can just use a regular input like:

<input type="button" value="Submit" onclick="SlickUpload_Submit()" />
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.