Welcome Guest Search | Active Topics | Sign In | Register

Ajax Uploader Options
Ahmed Salah
Posted: Thursday, March 13, 2008 12:31:41 AM
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
eo_support
Posted: Thursday, March 13, 2008 6:25:22 AM
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
ZD
Posted: Monday, March 24, 2008 4:24:16 AM
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.
eo_support
Posted: Monday, March 24, 2008 6:51:01 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Please check the help file. Everything is clearly explained there.
ZD
Posted: Monday, March 24, 2008 7:14:42 AM
Rank: Newbie
Groups: Member

Joined: 3/24/2008
Posts: 7
10x, going thru some old posts helped me once more.


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.