Welcome Guest Search | Active Topics | Sign In | Register

AJAX Uploader Options
Paulo Mondragon
Posted: Monday, July 14, 2008 11:04:52 AM
Rank: Advanced Member
Groups: Member

Joined: 6/4/2008
Posts: 38
Hello,

Now I'm working with the Uplolader control.
I'm trying to upload a CSV file, when I clik the upload button I get in my folder 3 files with extensions .data, .info and .status. Where is the CSV file ???
I have a button that makes other functions, but when I click it I supose I will see my CSV file in my TEMP folder or where it goes ?

Another doubt, I saw some posts of error handling but I do not understand how to personalize my error messages. Coud you pleas help me with this too ?

Thanks.
eo_support
Posted: Monday, July 14, 2008 11:15:50 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,097
Hi,

For the first question, you will want to set the uploader's FinalFileLocation. Once you set the FinalFileLocation, you will see your .csv file in FinalFileLocation once the page is submitted. You can ignore the contents in the TempFileLocation folder.

For the second question, it will be something like this:

Code: HTML/ASPX
<eo:AJAXUploader ClientSideOnError="your_own_error_handler" ....>
....
</eo:AJAXUploader>


Code: JavaScript
function your_own_error_handler(uploader, error, message, args)
{
   if (error == "max_size_exceeded")
      window.alert("max size exceeded!");
}


You can find a complete list of all errors at here:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Handlers.clientside_error_handler.html

Thanks


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.