I made a multiple file uploader with resize. All works fine, but sometimes uploading fails and nothing happens.
I've spent many times to find out why this happens, but with no result.
I assume error can be caused by variables that goes after import declarations. Maybe some of they are destroyed by the garbage collection? Or maybe my eventListeners are wrong?
I added eventListeners for handling errors (IOException etc.), but none of they was triggered. So now I've removed that listeners to simplify the code.
Do you have any thoughts about why uploading interrupt sometimes? Or maybe you notice some errors in my code?
I have created the multiple file uploading functionality in flash by using the FileReference method. But i need to stop and skip the uploading file while upload is in progress when we click the respective stop and skip buttons. I have the progressbar in which the two buttons are placed
As known, each subsequent time that the FileReferenceList.browse() method is called, the FileReferenceList.fileList property is reset to the file(s) that the user selects in the dialog box. And my question is:
How to manage to "remember" all previously selected files, each subsequent time that the FileReferenceList.browse() method is called? so that to append new ones and upload them all later on.
I'm building an app that needs to upload multiple files to my server. Ask of these files are in one folder. I was told I carnot directly tell a fileReference which files to upload, they would have to be selected manually through browse ().
I have been working on a flex uploader, where the user can select multiple files.It works fine when the files are uploaded in a queue (one at a time), however as soon as I try to have it upload 2 files at once I run into issues.
It seems that files will often lock up, and either stay at 1% until every other file is uploaded, or just not complete at all. There is never more than one file uploading at a time.Is there some issue with calling .upload on multiple files at once in Flex?
i am doing this using variables.caption1.thecaption[0],variables.caption2.thecaption[1] etc....the trouble comes in that the number of variables have to equal the number of images....so i have to recompile this program as the number of images change...is there a way to code this with some sort of loop?
I have written a ac3 script to upload files to remote servers and it is working as expected with all the events.
From the server side script i am echoing some text according to the upload status and i want that status to be received in flash like response text in ajax.
Is it possible to receive response text from a server script after uploading a file.
Or it doesn't have to be a file upload yet i wanted to have the string echoed in the server side script as response text in flash.
If that is not possible like ajax or normal request and response then is there another ways of achieving that?
Here is the code which gets executed when upload is complete.
I coded a multiple file uploader using the FileReferenceList and PHP. It works great for me all the time on my Fios internet connection, which is by far faster then DSL, etc... So my issue kinda went unnoticed until I got on a DSL connection. Now, many of the files I was uploading seem to be timing out, but there is no indication of this. No errors, etc... just stops its progress and NEVER finishes. Tried bumping up the script execution time on the server
/Flex code/ private const UPLOAD_URL:String = "http://myhosting/upload/upload.php"; private var cer:FileFilter = new FileFilter("Archivos Cer", "*.cer"); private var key:FileFilter = new FileFilter("Archivos Key", "*.key"); private var fileref:FileReference = new FileReference(); private var fileref2:FileReference = new FileReference();
i am uploading file from pc its working perfectly fine on safari,firefox,IE,chrome and selecthandlers and completehandlers are working perfectly but on MAC files was uploaded i did't get response so that i can hide the loader bar i think complete handler not working perfectly or any other reason .....
My code work fine in Windows system but it wont work at the MAC OSX. In MAC it wont load file when the file name having space in between.Please see the code for reference.
Code: Select all package { import flash.display.Loader;
I am using the file reference tutorial to upload an image to the serverobviously it works great. but I want to make each file upload unique, so if I upload mypicture.jpg to the server, I want to change the name of the file to mypicture1039094.jpg (or something that is unique).part 2:I want to also capture that new random file (mypicture1039094.jpg) in a text field so I can send it to a php script.
After building a flash using one of the players provided by KoolMoves in the interface, I checked to make sure the sound played properly and it did. I checked to be sure it was still in the contents file and it was. I uploaded it to my website and all plays great but I have no sound. I've checked to make sure my sound is not muted and speakers connected and all other sound plays fine. The progress bar for the player does not show when it is clicked eiither, as if there is no sound file in the player.
how to calculate Remaining Time of a file to upload on a server using AS3 and Flash Player 10.I have designed a File Uploader and its workign fine and i am displaying the progressbar in it but now i want to know how to calculate the Remaining Time of a file to upload.i am trying to calculate it with ProgressEvent.bytesLoaded and bytesTotal, but its not working for me. the loading of bytes by flash always comes different.
I have a major problem with File Uploading through PHP backend in mac OS it works fine in Windows OS but not in Mac. So how to resolve this problem? Is it Flash Side bug or PHP Side bug???
i want to make a progress bar uploading, for a bitmap image that is in flash library ,using URLLoader and URLRequest.but ProgressEvent doesn't work true and it happends just when uploading is finished.i search and find that with apc_fetch in php we can find the total and current bytes uploaded in server.but the sample was in html and php and it needs a hidden type with an id in http form.but i don't know how do it in flash.
a simple example in http and php is : <form action="" method="post" enctype="multipart/form-data" name="uploadImage" id="uploadImage"><p><label for="image">Upload image:</label><input type="hidden"
There is a WSDL which have one method which take byteArray & fileName(which i want to write) as a parameter to write a file in local system, the following is the code...
public void writeLocation(byte[] byteToWrite, String fileName) throws FileNotFoundException { StringBuffer fileLocation = new StringBuffer("D:\Products\Device");
[Code]....
but the flex 2 showing the error when i searched i found out in flex 2 there is no "data" property. so i am unable to create the selected object into byteArray..
I want to upload multiple files. For this I used FileReference and it works fine. I m able to upload the files properly.
When i upload a file i change its file name from "pic1.jpg" to something like "asdfwer.jpg"
Now i want to get this new name of a file - so for that i set cookie using setcookie() in php. But the problem is "Cookie is not being set" I dont get the reason for that.[code]...
I have a *.swf file and once i uploaded it in my ftp server to publish my flash website on the web. and when I go to my website no movie loaded in the flash player and once I check the FTP server where my web files are. My SWF file disappear. I complete the files needed to run the Flash website and its in my FTP server but only the SWF file disappear. My SWF file size is 12.2 mb, the 2 scripts needed in running the flash website are this expressInstall.swf, swfobject_modified.js. I am using Flash CS4 using AS 3.0 I'm really new to this software..
I made a dynamic text field inside of a movie clip. I then dragged the scroll bar component over, and it worked, yeah! But they Im uploading a .txt file dynamically through the .swf The text displays and is selectable but it does not scroll. The scroll bar is there but doesn't work.
im currently having a proble with uploading an image with Flash I used filereference The deal is that i should save first the file to be uploaded in a variable then after all needed has been entered there will be a save button at the end how will i be able to save the file saved in my variable in the database
I can successfully get variables back into AIR when communication just using variables, but get errors when trying to get vars back after a successful upload.Here is some non-upload code that works perfectly giving me vars back:
function login(event:Event):void { u_username = login_user.text; u_password = login_pass.text;
[code]....
When I use upload code, I get the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Here's the upload function:
function testerFunction(event:Event):void { var URLrequest:URLRequest = new URLRequest("http://www.blah.net/uploader.php/"); URLrequest.method = URLRequestMethod.POST;
[code]....
Everything except the var return works fine - the file is uploaded and saved no problem, and in the php the print "var1=upload successful"; code comes right after the code that saves the file to the server.
var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES;
...when uploading a file, as that seems to be the main difference.
its got a bunch of .fla, .swf and .html files which i just have to edit with my information. pretty easy.I uploaded all the files to my server and everything works great.so ive been editing the .fla files, inserting my pictures and information then publishing the .swf files and putting them back on the server and everthing looks great.
* The problem is that after uploading my last .swf file my webpage stopped working... i can see the front page put it doesnt load and when i click on my links it doesnt go to them.When i open the .swf file i get this ERROR:
It looks like the .swf file is looking xml/menu.xml on the server but for some reason the path is all wrong and the path appears to be to my Mac and not the server.
I can successfully get variables back into AIR when communication just using variables, but get errors when trying to get vars back after a successful upload.[code]Everything except the var return works fine - the file is uploaded and saved no problem, and in the php the print "var1= upload successful"; code comes right after the code that saves the file to the server.[code]
I have a job application form where i am taking users basic info as name,email, phone no along with this i am asking him to upload his CV(a doc /pdf file)
How can i post all data on one submit. I am using PHP at backend.
I can send data and upload file seperately.Isit possible to upload file and submit data at a time.
Can we send additional variables with File Reference object.
The system is a Flex application communicating with a WCF REST web service. I am trying to upload a file from the Flex application to the server and am running into some issues. I'm using a FileReference in the Flex app to browse and upload the file as defined here: [URL]. I am then receiving the file as a Stream (shows as System.ServiceModel.Dispatcher.StreamFormatter.MessageBodyStream in the debugger) in the WCF REST web service (using project type of WCF 4 REST Service)
[WebInvoke(Method = "POST", UriTemplate = "_test/upload")] public void UploadImage(Stream data) { // TODO: just hardcode filename for now var filepath = HttpContext.Current.Server.MapPath(@"~\_testfile.txt"); using (Stream file = File.OpenWrite(filepath)){ [Code] .....