Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










Flex :: File Upload - 4 FileReference With Firefox


I'm trying to perform a file upload using a FileReference from a Flex app running in Firefox 4. However when I attempt to call the upload() method, the Filereference throws an IOError with the following Error #2038: File I/O Error. URL: [URL] If I don't explicitly add a listener for the IOErrorEvent, then I get a Flash player popup stating SecurityError: Error #2000: No active security context.

The request doens't even hit my server (I can verify by placing breakpoints in the Java code and watching the HTTP Requests that go out using HTTPFox), so it seems to me that this is a client side issue (right?). I've done some searching for the problem on google and the suggestions included wrapping the upload() call in a timeout/callLater, and attempting to attach the sessionId to the request (since Firefox creates a new thread for the upload and doesn't attach the proper cookies). Neither of these approaches has worked for me. I don't experience this problem with Internet Explorer, only Firefox.

[Code]...


View 1 Replies (Posted: May 11 11 at 16:12)

Sponsored Links:

Related Forum Messages For Flash category:
Flex :: File Upload - FileReference Doesn't Work With NTLM Authentication?
We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will be popup asking the user to input credentials.I've queried some resource from internet and it seems this is a bug of FileReference component.

Posted: Jul 15 11 at 9:32

View 1 Replies!   View Related
Flex :: Use The FileReference.upload() Function To Upload Files To Sharepoint Or Have To Use The SP Web Services
Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.

Posted: Feb 5 10 at 22:19

View 1 Replies!   View Related
Flash 10 :: FileReference Upload Not Working On Firefox 3.6.6 Flash Player 10.1
I have an app that uploads pictures to the server. When I upgraded Firefox 3.6.6 FP to flash player 10.1 the uploaded stopped working. It still works perfect in other browsers. It works fine in Firefox 3.6.6 but different Flash player version. I did some debugging and noticed that it works fine when I run it in my development environment (Localhost). In the production server it returns I/o Exception but it doesnt make sense because it works for other players and also the file is there. I changed the permissions on the file to 777, the allowScriptAccess to always, tried to make the php path absolute also and no luck. The php file does not use sessions or cookies.

[Code]...

Posted: 07-14-2010, 07:34 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Using Flash FileReference & PHP To Upload A File?
I've been trying to build a simple flash uploader to upload files onto a server using the FileReference-class and simple PHP. Trying this on a localhost-server succeeded within two minutes, great!

However, now I am trying to do the same thing on the remote-server, but it keeps giving IO-errors. I have done the following: Put all permissions to 777, in the main folder and also the folder where the pictures are uploaded to Tried different remote servers

Posted: 09-14-2010, 01:48 AM

View 7 Replies!   View Related
Data Integration :: File Upload Using FileReference & PHP Not Working?
server, the swf is in the same domain as the images directory andthe PHP file. It's exactly as laid out in the Unleashed book: (see ). However, I get an HTTP 406 error whatever I do. I've checkedfile permissions. I suppose it is some sort of security problem butI can't see what. I tried the same thing on my local PC apacheserver and there I got an IO error can point me to more details onthe FileReference error handling

Posted: Mar 21, 2007 8:49 AM

View 2 Replies!   View Related
Java :: Upload In Flex Without FileReference?
Is there anyway of upload a file in flex 3.5 without using fileReference? Or even with fileReference, but without browsing, for example, I'm trying to take a printscreen and send it to my java web server

Posted: Apr 6 11 at 17:01

View 2 Replies!   View Related
Flex :: Adobe Air Upload Progress Without FileReference?
I'm deploying a small application with Adobe Air. My application will do batch upload from filepath which stored in a text file. For example, in a text file name "list.txt", there is a string "C:myfilesIMG_0001.JPG". Now I want to upload this image file, keep tracking of upload progress :-< I want to use FileReference to get the upload progress, but I don't know how to import from file's path. I also wonder how to use FileReference to upload this file without prompting a dialog for user to select file.

Posted: Apr 5 10 at 8:38

View 1 Replies!   View Related
Actionscript 3 :: Upload Images In Flex 4 With Filereference?
I'm trying to upload images in Flex 4 and haven't got so much success with it yet. My code:

[Code]...

This worked well when I took the Webservice approach and stored the Image (= bytearray) in SqlServer.

Posted: Mar 28 11 at 19:46

View 1 Replies!   View Related
Flash :: Upload Only 2 Files On Domain At Time, FileReference.upload Limitations?
I am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.

Posted: Jan 18 at 10:51

View 1 Replies!   View Related
Flex :: FileReference And HttpService Browse Image Modify It Then Upload It?
I am trying to do an image uploader, user can:

- browse local file with button.browse

- select one and save it as a FileReference.

- then we do FileReference.load() then bind the data to our image control.

- after we make a rotation on it and change the data of image.

- and to finish we upload it to a server.

To change the data of image i get the matrix of the displayed image and transform it then i re-use the new matrix and bind it to my old image:

private function TurnImage():void
{
//Turn it[code]...........

Now the mater is that i really don't know how to send the data as a file to my server cause its not stored in the FileReference and data inside FileReference is readOnly so we can't change it or create a new, so i can't use .upload();.Then i tried HttpService.send but i can't figure out how you send a file and not a mxml.

Posted: Sep 23 09 at 16:16

View 1 Replies!   View Related
Flex :: Generate Screenshot And Send It To Server (not Using FileReference.upload)?
Do you have any ideas? how to generate screenshot and send it to server (not using FileReference.upload)?

Posted: Dec 10 09 at 19:21

View 2 Replies!   View Related
Flex :: Incorporate FileReference Method Like Upload Into A Cairngorm Architecture?
how to incorporate FileReference method like Upload into a Cairngorm architecture.Specifically, I would think to fire an event with the File in it, and that's fine. But how would one then be able to listen for e.g. Progress Events?One thing I thought is to have the delegate fire off progress events that are listened for in the View.

Posted: Jan 14 10 at 18:22

View 1 Replies!   View Related
ActionScript 3.0 :: Using FileReference's Upload To Call A PHP Script From One Folder & Upload Elsewhere?
Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?

Posted: 09-09-2009, 11:23 PM

View 1 Replies!   View Related
ActionScript 2.0 :: Flash8 : File Upload Not Working With Flash Player 10.1 In Firefox?
I have a file upload script to upload pictures to a server. It has been working fine in all browsers but when I upgraded the flash player to 10.1 in firefox 3.6.6 yesterday it stop working.I retested with another computer and as soon as i installed the flash player 10.1 it stopped working.I did some debbuging and noticed that the error return from the FileReference listener is I/O error.It doesnt make sense because the file is in the server and it works fine in all other browsers.I changed allowScriptAccess from "samedoamin" to "always" without luck. it works perfect in other flash player versions.the HTML that embeds the movie:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />

[code]....

Posted: 07-14-2010, 02:18 AM

View 5 Replies!   View Related
Flex :: FileReferences Upload() Error In Firefox?
swf file in https zone, upload script in http zone.File upload fine in ie, and not work on firefox, opera.this code:

request.url = this.main.serverHostUpload + "/upload_web.php";
request.method = URLRequestMethod.POST;
request.contentType = "multipart/form-data; boundary=" + UploadPostHelper.getBoundary();

[code].....

Posted: Sep 12 10 at 14:29

View 1 Replies!   View Related
Firefox - Flash File Upload With Flash Player 10.1?
I have a file upload script to upload pictures to a server. It has been working fine in all browsers but when I upgraded the flash player to 10.1 in firefox 3.6.6 yesterday it stop working.I retested with another computer and as soon as i installed the flash player 10.1 it stopped working.

I did some debbuging and noticed that the error return from the FileReference listener is I/O error.It doesnt make sense because the file is in the server and it works fine in all other browsers.I changed allowScriptAccess from "samedoamin" to "always" without luck. I also used absolute path in the upload url. When I run it in my local development environment it works but it doesnt work in the production server. I have changed the security settings of the folders in the server to 777 and still doesnt work either.it works perfect in other flash player versions.the HTML that embeds the movie:

&ga=&sid=" />
&ga=&&sid=" quality="high" bgcolor="#ffffff" width="550" height="300" name="test" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" />

[code]....

Posted: Jul 14 10 at 17:30

View 2 Replies!   View Related
ActionScript 3.0 :: FileReference Upload Failure
I got a FileRefrence instance for a simple upload and it did work for some time in the past, but now I just can't discover what made it stop woking. Can anyone help me find it out? To simplify, I took only the necessary code (not working as the full version). Here are some details:

1. I'm using Flash Player 9 (this can't change because it is a part of a bigger project). My current host machine is a Windows Vista one. The sandbox is set to network access.

2. The FileReference calls a simple php script hosted at an Apache server (Linux). The script permissions are set to 644 (it works for file uploads coming from plain html pages) and I set the folder permission to 777 just to avoid any other source of errors. Here is the simple code for the php script:

<?php// receiving variables$uid = trim($_POST['uid']); // just to check for a post variable that I must send while uploading (won't work even if I revome it)
// a file to check if the script is really called
$myfile = fopen("upload.txt", "wb");fputs($myfile, "file upload for uid $uid
");

[code]....

Just for checking I add a Loader instance and used its "load" method with the same "urlSend" variable. It worked and the php script generated the output file...

Posted: Jul 15, 2009 1:53 PM

View 1 Replies!   View Related
ActionScript 2.0 :: FileReference Freezing On Upload?
I'm having an issue with a file uploader i'm working on. Certain files, it seems files over 7mb will not upload, nor give an error, it just silently freezes when it starts.

This is on a MediaTemple [dv] with the php.ini modified so that max_file_upload = 100M, same issue.

Here some ActionScript for yashortned a lil)

Code:
var listener:Object = new Object();
listener.onSelect = function(selectedFile:FileReference):Void {
browse_mc.filename_txt.text = selectedFile.name;

[Code]....

Posted: September 24th, 2007

View 1 Replies!   View Related
ActionScript 2.0 :: FileReference Upload IOError
I need to let people upload a .pdf document there are other places on my site that allow people to upload .jpg which are usualy a fairly small file size.Well I need them to be able to upload a .pdf which is considerably larger.The problem is that every time I atempt an upload, it gets to about 65000 bytes and then results in an IOError.

Posted: December 6th, 2007

View 1 Replies!   View Related
ActionScript 3.0 :: Upload Twice Time The Same FileReference Object?
there is a way to call two times filereference.upload on the same filereference object ?It's seem something is not call the second time..I need to re upload an images when this one is truncated after upload on web server.

here my code :
public function uploadImages():void
{/** @function uploadImages()

[code]........

Posted: Oct 11, 2011 10:39 AM

View 11 Replies!   View Related
Php :: Flash FileReference.upload() Doesn't Call Url
After moving a web site to another server flash upload stopped working. After some debuging and isolating the problem I found out that in SWF file (used for multiple upload) FileReference.upload() method doesn't work. URL called by item.upload(_root.uploadScript) isn't called.

Here is the code:

flash:

listener.onSelect = function(fileRefList:FileReferenceList){
var list:Array = fileRefList.fileList;
var item:FileReference;
_root.toUploadCount = list.length;

[Code].....

Posted: Oct 11 11 at 10:21

View 1 Replies!   View Related
ActionScript 3.0 :: FileReference Upload With Random Number?
how would I upload a file using file reference, but having the file save on the server with a random number.

This is to avoid 2 people uploading to the server with the same name.

Posted: 01-31-2009, 11:56 PM

View 4 Replies!   View Related
ActionScript 3.0 :: FileReference Upload() Returns False?
I am currently making a program to upload certain files onto a web server and I have come accross a problem.In my code I've got:

ActionScript Code:
if(fileRef.upload(new URLRequest("http://www.mackaygymnastics.org.au/administrator/upload.php"))) {

[code]...

Now I understand that this is returned because the upload function returned a false, but why is it returning this false. Is this because the URLRequest is wrong or the uplaod file is wrong or something else? I've tried looking all over the web for another case and it doesn't give me one.

Posted: 08-30-2009, 08:23 AM

View 5 Replies!   View Related
ActionScript 3.0 :: Filereference Upload, No Popup In Browser?
I needed a file upload feature. I pretty much just copy pasted the code from the flash help and when rendering, flash would show the file browser window when rendered in flash.However, when displaying the swf in the browser, either on my local laptop server or FTP-ed up on my server, the popup would not pop(up).why does it run when publish/test it in flash?

Code:
import proxy.FileReferenceProxy;
import flash.display.Loader;
import flash.net.URLRequest;[code]........

Posted: 11-17-2009, 02:30 PM

View 5 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved