on 09-23-2005 8:07 PM
Hi, I'm trying to implement a progress bar indicator for a file upload in WebDynpro, without very good results.
I'm using a fileupload UI element, a TimerTrigger and a ProgressIndicator UI elements for this purpose.
It seems that using the fileupload UI element the iview is locked during the file upload, and therefore it prevents for the timer triggered action to be performed (this action updates the progress bar).
Additionally I havent been able to capture the transfered bytes from the upload. Maybe I'm using the wrong elements?
How could I achieve this. Has anyone done it?
I would really appreciate all the help I could get.
Homer Vargas
Is there another way to upload a file other than using the fileUpload component?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can anyone please tell me the way to upload file from client system to server.
The code i have is as follows:-
Jsp:-
-
function saveImage(){
//projectname.javafilename
var strStatus = "save";
document.saveImageForm.action="/irj/servlet/prt/portal/prtroot/TestXML.TextImageLink?frmstatus="+ strStatus;
document.saveImageForm.method="post";
document.saveImageForm.submit();
}
<form name="saveImageForm" encrypt="multipart/form-data">
<table width="388" cellpadding="1" cellspacing="1" bgcolor="#F0F0F0" border='0'>
<tr>
<td><font color="blue" face="verdana" size="2">IMAGE:</font></td><td><input id="image" type="file" name="image" value=""/></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Submit" onclick="saveImage();"/></td>
</tr>
</table>
</form>
now i am not getting what to write in java file
using IPortalComponentRequest.
-
Using the jsp file upload in tomcat is working but here it is not working
-
please help meee
Thanks in Advance
Regards
Sirisha
Vargas,
Unfortunately, file upload is an atomic operation in WD, this is just a submit of multipart form data underneath. Obviously, it is impossible to create progress bar indicator for atomic operations - WD does not fire any additional events on upload progress or alike.
<i>Additionally I haven't been able to capture the transferred bytes from the upload</i>
If you are using file upload, you have to use <b>binary</b> context attribute, just access value of this attribute (which is of java type byte[]) in action handler.
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.