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.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
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.htmlThanks
|