on 12-12-2006 10:56 AM
Hi,
I've been reading this great forum and got answers to many questions, but Ive got a little problem i havent found answer.
I have to insert a upload file form o xls file, and show data y a table. All works ok if you select the file from the button Explore of Upload file component. The problem is that if you put a wrong route or filename with keyboard in the field of upload component and press the button that reads the file the system dont responds, and you have to reload the page.
Ive been trying many things, but I dont know how to control this, to show a message like: file doesnt exist or something similar...
Thanks in advance!,
Pedro
Hallo Pedro,
<b>Symptom:</b> No error is displayed in FileUpDownload app while trying to download/upload a file which does not exist.
There are two related problems:
<b>Problem 1:</b> When 'xxx' is given, the application is hanging.
<i>Answer:</i> This is a browser bug, that has been reported to Microsoft and they said they will not fix it. This problem does not exist in firefox.
<b>Problem 2:</b> When 'C:\dd' is given, success message is displayed for FileDownload.
<i>Answer</i>: There is no difference on ther server side between an empty file and a non existent file. So there is no possibility to detect that this file does not exist. That is a limitation of the protocol, and so both browsers are affected by this limitation.
Regards, Bertram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not possible (as far as I know). I have been looking for this for some time and never found a solution.
But I think you have to ask yourself who is going to enter an invalid path. If the application is used by standard users, they are always going to use the "Browse" functionality.
A possible (not really nice) solution is to add a text to the view where you warn the users.
Regards,
Christophe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for answer Christophe.
Its a little bit disappointing that text box of upload file component cant be controlled or at least disabled for keyboard, as writing the path can be is useful for user (its true that most times user will press browse button, but if user try to write path and makes any mistake...)
Regards,
Pedro
You're welcome.
Another problem regarding this is that you can't control the browse button or manually trigger the upload event. And every request to the server triggers an upload if a file is selected, even if it is not wanted.
There are people that say you can fire and catch every event (also that from the browse button for example) but they can't say how and I never saw a solution.
Regards,
Christophe
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.