Professional :: Asynchronous File Upload?
Aug 4, 2010I need to write an application to asynchronously upload a file to a server.
Anyone have any examples or tips as to how I can do this?
I need to write an application to asynchronously upload a file to a server.
Anyone have any examples or tips as to how I can do this?
sample for asynchronous file upload using flex filereference object
View 1 RepliesI have created a full website in Flash CS5 and coming across a problem when uploading it to my website, it's cutting about 2 inch off the top and bottom. When I play it in Flash CS5 it works with no problems at all also when you publish the website the SWF plays fine but the HTML file lie
View 1 RepliesThe title says it all. Anyone know how I would code a file/pic upload form in flash. I have seen examples that you can use php. However I have tried the php/java I designed for my dreamweaver sites. I think It's time I get with the real designers and us flash for my websites.
View 1 RepliesI have been trying to upload swf file which was inserted on http page.
I have uploaded http, swf, flash files and scripts but I can only see text on the website.
When I deleted http file and check the website I could open swf file and see the image.
my listener.onComplete = function(selectedFile:FileReference) is fired without any file in the upload dir. if the file is small and I wait a bit I can see the file (through FTP) coming up on the server, but most of the times the "onComplete" if fired without any file being saved.
can I add something to this php code to make sure the file is uploaded?
[Code]...
I am doing a simple project for school, and I had to develop a website off of a premade template, the URL is [URL]. If you go to the about page there is supposed to be a video in the TV that plays, when I use the FTP server to upload the swf and index.html file, where am I supposed to put my video file so flash finds it and it plays? also having the same problem on the portfolio page with my pictures not being there. When I click the small icons on the left, the larger picture is supposed to show up in the right picture frame.
View 37 RepliesIs there any "mainstream" library used for this purpose? Commonly spread, well maintained, documented etc.I found these (using flash):
Uploadify - not many releases, latest 12/2010, no documentation (!)
SWFUpload - latest release 03/2010, documentation
fancyupload - looks buggy.
phpfileuploader - looks heavyweight, and looks commercial (?) I cannot read the licence (you can download it but are you allowed to use it forever without paying?) plupload New version of pure javascript (no flash) Valums' ajax upload claims to handle file size limit and progress bar, which is quite suspicious to me: these features require to guess the file size before the upload, which seems impossible in javascript (look also here). Or can it work?
I am trying to upload a file on server using File class. Its working fine on local machine. But when i a placing the php file on server, it is giving Error #2038: File I/O Error.
[Code]...
i need some help with this photo gallery im working on. im pretty sure i have almost everything correct but for some reason i cant get the thumbnails when clicked to link up with the img. i want it to show.
well i cant really upload the file here i just found out so i can email it to whoever leaves there email
if someone could take a look at the file and tell me what im doing wrong that would be so helpful ive been working on it for the past 2 days trying to fig. out whats wrong searching everywhere and i just cant fig. it out.
If you have an .as file in the global include directory do you have to upload it to your server with the flash file or does it compile the flash file with the included info?
View 2 RepliesI'm trying to figure out if there is a way to allow a user to upload a file in the background and let them continue to interact with flash movie, while the file is being uploaded. E.g. if they are uploading a 50mb file, we don't want the whole interface to be locked up for 10 minutes while the file uploads, it's be great if they can continue to interact in the movie while the file uploads. I'm guessing if they refresh the page, or navigate away from the movie, that the upload process would get cut off and there isn't anyway around that. Couple of ideas I had:
1. My first thought is that we could use a popup window with a upload form in it. Which is simple, but not very cool.
2. Use some sort of ajax background uploader in conjunction with flash ... not sure exactly if this is possible.
I have a flash site (finally) but I need to host it through dreamweaver. I cant do it. I tried loading it thru the media option and it gave me an error. I have a lot riding on this site and Im at the last step only to find some new obstacle in my way.
View 2 RepliesI recently used Flash to create the header for my website. However, when I tried to upload my .fla file along with the .swf (which had no problem), I couldn't because the file format isn't supported. Is there any way I can get around this?
Also, I heard that you have to upload some .js file or something.
uploading files on Mac system. The same code runs perfect on a Windows system. Below is a snippet of the code I am using:
public class BrowseImage extends MovieClip
{
public var fr:FileReference = new FileReference();
public var ff:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png;*.pdf,*.JPG,*.JPEG,*.GIF,*.PNG");
private var timeStamp:String;
[code].....
Once the file gets uploaded to the server, I load it into my application.Also, the script runs fine if there isn't any space in the file name of the file to be uploaded.
i want to uplod csv file in to java from flex screen ? How can i do that ?
View 2 RepliesI am trying to upload files to my server using a flex program but the swf files are not being uploaded. So I tried to upload other file types such as png, jpg, txt, xml and all of these upload without a problem but swf will not upload.
MXML File:
<?xml version="1.0" encoding="utf-8"?>
d {
[code].....
Can anyone link me to an aspx (asp.net) file-upload script, that I can use with the FileReference.upload() function?
View 3 Repliesi have been wandering the internet for several days and can't find an answer to my file uploader nightmare, i just want to upload a file from flash via php, i have been using the FileReference class but as soon as i try to upload it nothing happens or at least it tells me its complete in super quick time but nothing has been uploaded and there has been no POST request fired i have checked my directorie paths and they are fine but no joy.
i proper want to get this to work, would be cool to finally get php working with flash for the first time.
[Code]...
I want to upload a file from my flash app. So when a button is clicked, I want to pop up a file upload dialog box displaying files of the specified type. Is it possible to this in actionscript 3?
View 1 Repliesthere is a flash bug on osx 10.6 (snow leopard) after uploading a file. does anyone know this bug? i tried many online apps like [URL] and also have seen that other people had the same problem : [URL]
View 1 RepliesI am new to using flash and am working on small flash movie for a class assignment. I had to add a replay button at the end of my movie which I did according to my text and other tutorials I have read unfortunately my replay button is not working. Just realized I cannot upload my file as it is too large, can email them my file.
View 3 RepliesIs there a way to create a form in which the user can upload a file (like a pdf) with the click of a button? I do not find any component capable of doing that. I presume this could be done with ActionScript.
View 1 RepliesI'm working with Air and in Flash CS5. I've got AIR saving a string in a variable to a file:
[Code]...
It works fine. I'd now like to upload the file just created to a server. I've been playing around with a var fileRef:FileReference = new FileReference(); example. I was wondering if there was a way to automatically upload the file, or if a browse is always required? If not, I have previously used the following AS3 code to successfully send a string of data to a php file, and have php save the data as a file with whatever name is set in the php file.
[Code]....
i have a file uploader in AS3, and can successfully save a file using php. I'd like to also send variables along with the file, have php process the variables, and display them back in Flash.
In a separate project, I was able to get variables from flash-php-flash, but I can't work out how to do this while also uploading a file. I get a null reference error in the completeHandler function when flash tries to display the vars coming back from php.
[Code]...
How to upload a flash on this forum file so it can be reviewed.
View 3 RepliesAny best way to upload the image file by using Flex 4 and PHP. I have searched online but most of them are using Flex 2 or older version. I am just curious if there are any new ways to do it. I just found a good one here... [URL]
View 1 RepliesOn a webpage, is it possible to split large files into chunks before the file is uploaded to the server? For example, split a 10MB file into 1MB chunks, and upload one chunk at a time while showing a progress bar?
It sounds like JavaScript doesn't have any file manipulation abilities, but what about Flash and Java applets?
This would need to work in IE6+, Firefox and Chrome. Update: forgot to mention that (a) we are using Grails and (b) this needs to run over https.
I'm trying to upload a file with Flex to Minus.com
The API Reference explain the upload with this example:
POST /api/v2/folders/0FQHJakL/files?bearer_token=[token] HTTP/1.1 Host: minus.com Content-Type: multipart/form-data;
boundary=----WebKitFormBoundaryxECY8varBqIXZW4f Accept-Charset:
UTF-8,*;q=0.5
[Code]....
I am trying to upload a pdf file to a server but I am not having any results. Here is my actionscript code:
ActionScript Code:
var fileTypesV:Array = new Array();
var pdfTypes:Object = new Object ();
pdfTypes.description = "pdf (*.pdf)";
[Code]....