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

Only allow a single file upload Options
analogmethod
#1 Posted : Friday, April 11, 2008 5:34:12 PM
Rank: Newbie

Groups: Registered

Joined: 4/11/2008
Posts: 1

Hi,

I'm in a situation where the application requires a single file upload only. What's the easiest way to configure SlickUpload only to allow a single file upload input?

Thanks!

Zach.

ChrisHynes
#2 Posted : Tuesday, April 15, 2008 10:25:16 PM
Rank: Administration


Groups:

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

The dynamic adding is driven by javascript in the UploadHandler.aspx file. To remove it, edit the UploadHandler.aspx file as follows:

  • Remove the javascript that adds/removes file inputs automatically.
  • Add a single file input between the form tags on that page.

If you want to make the file required, drop an UploadManagerRequiredFileValidator on the page with your UploadManager.

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.