Flex URLLoader Upload - Determinate Progress Bar?
My application asks the user to select files for upload using a FileReference / FileReferenceList. The client then compresses the File data and uses URLLoader to upload the contents of the file.
One problem with the URLLoader is that the progress event does not get triggered for uploads. How do I track the upload progress? I am unable to create a FileReference for the newly compressed ZIP ByteArray.
-- Sri
Hi,
If oyu are creating your custom "FileUpload" Action xlass then you can add "ProgressEvent.PROGRESS" event to handle progressbar functionality.
So if you are adding handler "ProgressEvent.PROGRESS" event to handle using function "progressHandler" which can be like this -
private function progressHandler(event:ProgressEvent):void {
pb.setProgress(event.bytesLoaded, event.bytesTotal);
pb.label = ""; //Add text you want to add
Similar Messages
-
Can anyone recommend a free file uploader with progress bar?
Can anyone recommend a free file uploader with progress bar?
I have searched google but with no luck.
Ideally it would be a DW extension but that might be wishing
for too much.
I would like a large file limit for video and multiple file
extensions allowed.
Thanks in advanceHeya,
Check out this due Waleed he has some nice tuts and here's
a
link
to file upload with progress bar tutorial he has. Granted it
looks like it's just an animated gif letting users know their file
is uploading; if you want realtime upload information displayed for
the user you're gonna have to look at something like Flash with the
power of actionscript to achieve that result.
Hope that helps! -
Is there any component like percentage indicator not progress bar in Flex ?
Hi All,
I have to display a percentage value in a graphical way.( for example say 75% , a tube similar to progress bar which has a fill up to 75 % )
Is there any such component in flex or can I use progress bar ? please share your thoughts.
Thanks,
Tc.You want to use a determinate ProgressBar with mode set to manual:
<mx:ProgressBar id="progressBar" minimum="0" maximum="100" mode="manual"
label="0%" labelPlacement="bottom">
</mx:ProgressBar
Then use setProgress( %, 100 ) to set the percentage:
// set the progress to 10 of 100 (10%)
progressBar.setProgress( 10, 100 );
Let me know if that does the trick.
Ben Edwards -
Creating Progress Bar for File Upload
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 VargasHi,
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 -
Progress Bars in File Upload Behavours
Progress Bars in File Upload Behavours would be great.
I think we need to be realistic ;)
KTML4 - isn't going to happen, it was dropped, other 3rd party products are surfacing,
sadly, we'll not see that again.
Calendar was a separate Interakt application (not really a toolkit item)
like the ADDT form control date/calendar picker - so I doubt that will happen
That said - it would still get my vote for a comeback.
Ajax tool - need to specify EXACTLY what tool and how it would expand on the ADDT and how it would relate to SPRY and other Components now being made available for DWCS4 ie YUI etc
atb
Paul -
My files are not uploading; progress bar stops and I get an error message
Last night (dec. 23) I was trying to upload 30 photo files. The progress bar works, but it either stalls or at the end I get an error message. These are time critical, I have a client waiting for the photos. I tried sending just a couple of photos, but the same issue happens. Please give me a solution.
Hi Lory Hawley,
Have you been able to upload your files? What is the error that you're receiving?
For starters, please try the following:
Clear the browser cache and try again.
Try a different browser (see System requirements | Acrobat.com for a list of supported browsers).
Please let us know how it goes.
Best,
Sara -
Progress bar during upload....
Hi guys,
i'm a question....
i've developed an upload function in my jsf application using Myfaces component FileUpload.
It works very well.
My question is:does exists something i can add to my upload function to view a progress bar during upload without using Ajax component that gives me some problems?
Thanks very muchiloveflex,
why not use the progress event of the FileReference object?
Have a look at the Adobe language help for FileReference and you
will see that the one-line help for this event is "Dispatched
periodically during the file upload or download operation". The
example code at the end of that help article gives an example of
using this event to print out bytes so far and total bytes in the
trace window. You should be easily able to adapt this to display in
some other way sutiable for your users.
Richard -
How to Reduce Image Size and show upload Progress Bar
i need to capture an image from the camera and send it to the server. however to reduce the amount of data transmitted i want to shrink the image and lower its resolution.
I have code that currently does the following :
UIImage *testImage = [UIImage imageNamed:@"image1.png"]; // this would come from image picker
NSData * imageData = UIImagePNGRepresentation(testImage);
// skipped code that showed URL string setup
NSString *postLength = [NSString stringWithFormat:@"%d", [imageData length]];
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:imageData];
NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:request delegate:self];
1. need some way to shrink the image size to reduce data traffic
2. need some way to indicate a progress bar as data is being transfered to the server1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload. -
Can I remove the startup progress bar from a Flex app?
Hey all,
I have built a few charts for my companies' website: http://www.midwestmarket.org/page/Area+Control+Error
On all of them, I have noticed that there's a delay of 3 or 4 seconds from the time the page loads, a progress bar shows, and then the graph is actually shown.
The charts in question are all Flex 3 builder built, and I am upgrading now to Flash 4 builder. But, still I see the progress bars.
I know that Fusion Charts doesn't have this same startup routine, those charts pop right up as soon as the site is loaded. Now Fusion is of course build to JUST be a chart tool and probably doesn't load as much stuff. But, is it possible to get there with Flash 4 builder?hi,
With flashbuilder you first need to load the swf, then it creates the display objects this is what the loadbar is there for, if you have embedded assets then that bar will stay even longer. Once the application creation sequence is complete the displaybar disappears and then your application is displayed.
Now imagine removing that bar, on a slow connection with a 'large' app, the user would be faced with a blank screen for several seconds, not the desired end-user experience we are after.
You can make it more interesting by customising the pre-loader with say a company splash screen which offers a more visually appealling startup
this is a simple example of a custom preloader, source is included
http://flashhub.net/ezflex/testloader/
One quick note with preloaders there is no flex sdk at that point so preloaders have to comply with the immediate requirements of the flashplayer api. So basically on flash components.
David. -
Dear sirs...
i have an ADF UIX page that uploads an ORDVideo file. is it possible to display the progress in the upload operation using a progress bar for example???
thanks for any helpDid you get to know how to do it?
Anuj -
Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
Hi All,
Check out the blog post 'Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar'
Uploading files to SAP using HTML5 /AJAX/Gateway media links with real-time progress bar
Regards
Prabaharanaplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
Which correspondents fine with the
device "hw:0,3"
in my mpd.conf alsa section.
Also sound worked fine withh this config before I started installing ffmpeg-svn and alikes
hokasch:
I tried changing the mixer to "Master" but that did not change much. -
Progress Bar in Datagrid in flex
Hi,
I have a urgent requirement, which needs to have ProgressBar
in DataGrid. I want to set progress for each of the ProgressBar in
datagrid to be binded to a cloum (i.e your progress bar column is
binded to some object in array collection). Please do let me know
how this is possible. It would be great favour if it is possible to
do it using manual mode.
I used following mxml
<mx:AdvancedDataGridColumn id="teamProgress" width="120"
headerText="Team" dataField="TeamProgress">
<mx:itemRenderer><mx:Component><mx:HBox
verticalAlign="middle"> <mx: ProgressBar id="PB"
trackHeight="13" barColor="red" trackColors="[White, haloSilver]"
borderColor="black" width="75" textAlign="right"
styleName="progressBar" mode="manual" label="data.TeamProgress"
height="13"/></mx:HBox></mx:Component></mx:itemRenderer>
</mx:AdvancedDataGridColumn>.
How to support static binding of the progress bar column of
DataGrid to some object in ArrayCollection.
I want this progress bar column to be clickable.Hi,
Please find the code for implementing a progress bar in
DataGrid at the URL below. You will find code for sample
application which is using Adobe share API. In this application
they implemented a progress bar in a DataGrid.
https://share.acrobat.com/adc/document.do?docid=fa29c796-dc18-11dc-a7df-2743035249fa
Hope this helps. -
Progress bar for chart dataProvider?
I have a chart which has for dataProvider a link to a php
script which processes data and returns XML.
The processing takes a little bit of time so from flex the
user stares at a blank graph for some time.
Is there anyway to link a progress bar to this loading
process?
If I load the script directly from the browser, the browser's
progress bar (bottom right in IE) is more or less accurate. I would
like the equivalent from within flex.
Any input appreciated, thanks!
sample:
<mx:PlotChart
id="molecularChart"
width="100%" height="100%"
dataProvider="
http://www.blabla.com/processing.php"
showDataTips="true">
...If you are trying to update the progress bar display when your upload is 10%, 20%, , , x% complete, then you have to 'pretend' that the progress bar display corresponds to the percentage completness of your file upload. I believe that there is no other way to get around this without comprimising the speed of your upload.
Check out the swing forum, I believe there is a lot of discussion on this topic. -
[Upload] Show progress when file is being uploaded
Hi,
More and more often, one can see progress bars when uploading files from the PC to a server.
The most visible example is the attachment of documents in Gmail.
There are many components on the Internet out there. The client part (should it be in AJAX/HTML or Flex...) is not really an issue, I am more interested in the server-side part for most examples give out PHP script.
I was wondering whether this would be possible using BSP.
I believe that using:
o the method GET_DATA and its length parameter, it is possible to upload a file by chunks of few dozen kilobytes (I guess there is an optimum solution that satisfies packet fragmentation and so on... but that is not the point here, though I would be glad to hear some information about this!)
o file system to store the document with a guid (FM 'GUID_CREATE' may help)
o AJAX calls from the client to the server in order to get the progress of the upload
it is possible to achieve this.
Has anyone already tried this?
Many thanks in advance for your help.
Of course the next would be to make a BSP Extension out of this...
Best regards,
GuillaumeHello,
SAP is no more enhancing the BSP extensions. They went over to the webdynpro stuff (poore guys).
The are many widget, which can combined with bsp pages.
Check out (->Google)
1) SWFUpload
2) ExtJS
3) jQuery
We are a cFolders Customer. SAP provides an applet based solution for upload/download. It has
an counter for the transfered bytes.
Best regards,
Stefan -
Resetting progress bar in datagrid
Hello all,
I'm extremely new to everything flex and flash. so this may
be a really stupid question. but google has so far failed to find
the answer to this.
i built a small flash app to allow clients to upload files in
bulk. everything seems to work fine (for the most part) except that
my progress bars never reset. if they upload a file then select a
new file, the progress bar will remain at 100%. i can't figure out
how to reset it. can anyone point me in the right direction?
Thanks in advance.
Code for the DataGrid:does anyone have any ideas for this?
Maybe you are looking for
-
Export and Import a page from one application to another within same WKSPCE
Hello, Can anyone help me out in moving a page from one application to another within the space workspace. I tried to export it and then import the page, but I am not able to do that. I think the problem is with the application IDs. Plz help me out w
-
In reports, i want to display currency field out put with diff currencies
Hi all in reports, i want to display currency field out put with different type of currencies like 1st record in rupees 2nd record in dolors 3rd record in Euros. for this i should not use any tables and any currency fields and any functional m
-
Giving next / previous a brain?
Hello; I wrote a next previous nav for editing records on my web site. I also on one of the same pages, have it filtering records by the category. If a user wants to see all the records they can, or if they select from a list on another page, they ge
-
Encrypted External NOT Mounting
I have a 1TB WD external I have encrypted and used for Time Machine backups. I decided to erase the hard drive and reinstall OS. I reinstall the OS to OSX 10.8.2 Mountain Lion. Once this was finished I plugged in the hard drive to access important da
-
I uninstalled Firefox and not it will not install for me. I get a error that says, The item referred to by this shortcut cannot be accessed. You may not have the appropriate permissions. What can I do?