on 05-10-2006 8:33 AM
Hi all,
I am using htmlb:fileUpload for uploading file in my BSP application.
But this is allowing me to enter any filename (just that it has to be a fully qualified name) even if that file doesnot exist in the presentation server.
e.g I am entering C:\abc.txt.This file is not existent in my server. Still uploading is done.How can I keep a check on whether this file actually exists ,before uploading ?Please suggest.
Regards,
Ananya
Hi Ananya,
have a look in this weblog
/people/renald.wittwer/blog/2005/05/15/bsp-an-input-field-using-a-java-applet
With this Java Applet you can enter only files that exist on your local machine.
Pherhaps it helps
Best regards
Renald
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eddy,
What if,the user wants to upload an existing document which is empty ?In this case,the blank document will not get uploaded even if it is existing in the PC.Please help.
Regards,
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
I would have got back to the threads soon.But I was travelling whole of this weekend for work and right now am tied down with deadlines.However,I am sorry if I have offended you.It was not my intention.
I really appreciate and respect the responses I get from SDN.
Guillaume, Can you clarify a bit please? how to use onUnload?
Regards,
Ananya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ananya,
I hope you understand that this is not OSS, people here take their time and effort to help each other.
A minimum courtesy of a reply to the posts you created saying that the suggestions given by others were helpful / useless, etc is expected. (leave alone the points)
check these threads of yours
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Checking the file on the client side isn't feasable, unless you want to use some ActiveX, which implicates secury problems.
I would do this in the oninputprocessing.
file_content ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'fileUpload'
id = 'fileUpload').
IF file_content IS NOT INITIAL.
name = file_content->file_name.
...
ENDIF.
Eddy
Hi Ananya,
Did you try to implement the onUnload event in the onInputProcessing event handler ?
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.