|
Rank: Newbie Groups: Member
Joined: 9/30/2007 Posts: 3
|
Dears, I have 3 questions on Ajax Uploader object!! 1- I want to prevent specific file extensions from uploading and allow all the others , how can i do that ? 2- How to change the message appear for user when uploading file size more than the allowed size in ajax uploader ? 3- How to fire event before physically uploading the file (after press the upload button) ?
Thanks & BR Ahmed Salah
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Ahmed, To your questions: #1: That does not appear to be possible. You can configure it to allow only certain files though. Another option is to allow user to upload, but on the server side when you pick up the uploaded files, you just ignores certain extensions that you do not like; #2: You will need to handle ClientSideOnError: http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Handlers.clientside_error_handler.html#3: You will need to edit the uploader's LayoutTemplate to remove the standard upload button and replace it with your own. You can then call whatever other JavaScript code before calling the uploader's upload:
Code: HTML/ASPX
<a href="void StartUpload()">Start Upload</a>
Code: JavaScript
function StartUpload()
{
//do whatever you'd like to do before upload
....
//start the upload
uploader.upload();
}
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 7
|
Hi, can anybody please give me a crashcourse in LayoutTemplates? I want to put the whole control in the same row, plus design the buttons.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Please check the help file. Everything is clearly explained there.
|
|
Rank: Newbie Groups: Member
Joined: 3/24/2008 Posts: 7
|
10x, going thru some old posts helped me once more.
|
|