Flex :: File Upload - FileReference Doesn't Work With NTLM Authentication?

Jul 15, 2011

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.

View 1 Replies


Similar Posts:


Php :: Flex Client Authentication With NTLM Using Md5 Encryption

Nov 4, 2010

I have flex client application with php as a server and i want to implements domain user and password authentication. I'm sending the user and the password from the flex client through httpservice to php script and the php script authenticate the user and the password with the domain But! I want to encrypt the user's password in flex and to decrypt it in the php. I have the as3crypto.swc module for the flex but I don't find any way to decrypt it in the php. So, how can I do that and If this is not the right way to do that how can I do that?

View 1 Replies

Asp.net :: File Upload In Flex When IIS Is Set To 'integrated Windows Authentication'

Dec 8, 2009

I have a flex app that allows the user to upload a file.The flex side uses the FileReference.upload method that goes to an .aspx page that handles the upload. It works only intermittently when I have IIS set to integrated windows authentication.That said, for testing purposes,I wrote a separate aspx page that does a file upload and this always works.I'd like to leverage the file import,though, within the nice looking flex app and not kick off a new webpage for a file upload.In looking at the IIS logs I have a hypothesis as to what's happening, and want to know if someone has full understanding as to why it may only intermittently work and can confirm or deny this: Flex' FileReference upload guts does whatever it does on the client then initiates a POST request to my .aspx page.On the times it failes, the IIS logs state that IE didn't pass the credentials so denies the request then sends a 401 response.

I don't get this 401 response on the flex side even though I'm listening for HTTP status codes (flash bug?).A new request is somehow immediately made to perform the upload again (it's not my code). I'm inferring this by looking at the IIS lgos which shows a second POST right after the previous one, only this time the user credentials are sent through, but the kicker is that the file the user uploaded is not uploaded this time. I infer this by the fact that the IIS logs show 0 bytes are posted, whereas the previous 401 request show a lot of bytes are POSTed.On the times it does work, what happens is that the first request for the HTTP POST the FileReference makes so happens to send the windows credentials along, so the client is not challenged.

View 1 Replies

Flex :: File Upload - 4 FileReference With Firefox

May 11, 2011

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

Php :: Flash FileReference.upload() Doesn't Call Url

Oct 11, 2011

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].....

View 1 Replies

ActionScript 2.0 :: FileList/FileReference - Second Files Doesn't Upload

Jan 7, 2009

Once the first file is successfully uploaded and the data is returned from server (onUploadCompleteData), I begin to upload the second file from FileList. Here comes the funny - listeners onOpen, onProgress, onComplete are successfully invoked in Flash, the filereference is indeed the filereference of the second file, size matches. But the onUploadCompleteData is never invoked. I checked in IE HTTP Analyzer and there is a simply no outgoing data (0 bytes), even tho the request is made. So the file "finishes" uploading like nothing would have happened but actually it didn't upload at all.

I tried to add a 30 seconds delay between uploads and that works flawless till now. So I tried, 1 sec, 3, 5, 10... didn't work. I simply cannot let a 30 seconds delay between uploads.

ActionScript Code:
public function upload(file:FileReference){
//IntervalManager.clearInterval(this, "uploadInterval"); <- added interval for testing, works with 30 secs

[Code].....

View 0 Replies

Flex :: Use The FileReference.upload() Function To Upload Files To Sharepoint Or Have To Use The SP Web Services

Feb 5, 2010

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.

View 1 Replies

ActionScript 3.0 :: FileReference Upload Method Doesn't Make Any Request

Mar 20, 2011

As URLLoader launches requests without any issue (I'm monitoring network and flash activities via FireBug in FF 3.6.13), the FileReference upload method doesn't. The odd thing is that no error is thrown AND (the strangiest) the complete and the progress events are correctly fired while no request has been done, and my php isn't receiving anything !

ActionScript Code:
var file:FileReference = new FileReference();
function mClick(mEvt:MouseEvent):void {

[code]...

View 2 Replies

Iis - Uploadify (flash File Upload) & Integrated Windows Authentication

Mar 31, 2010

I'm running into an issue with Uploadify. I have put Uploadify into my app and all works fine in dev (using the VS web server). All worked fine and checked until I deployed the app into my test environment which uses Integrated Windows Authentication. When I actually go to upload the file, the browser brings up a login prompt. At this point, even if you type in the correct username and password, the request seems not to complete and even if you tell the browser to remember the password it still brings up the login prompt.

When this started to occur, I decided to spin up Fiddler and see what was going on. But guess what, when ever Fiddler is running the issue doesn't occur. Unfortunately I can't make running Fiddler a reuqierment for running the app. I know there are some issues with Uploadify/flash when using forms authentication but I didn't think they carried across to Integrated Windows Authentication.

View 2 Replies

ActionScript 3.0 :: Using Flash FileReference & PHP To Upload A File?

Sep 14, 2010

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

View 7 Replies

Data Integration :: File Upload Using FileReference &amp; PHP Not Working?

Mar 21, 2007

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

View 2 Replies

Java :: Upload In Flex Without FileReference?

Apr 6, 2011

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

View 2 Replies

Flex :: Adobe Air Upload Progress Without FileReference?

Apr 5, 2010

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.

View 1 Replies

Actionscript 3 :: Upload Images In Flex 4 With Filereference?

Mar 28, 2011

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.

View 1 Replies

Flash :: Upload Only 2 Files On Domain At Time, FileReference.upload Limitations?

Jan 18, 2012

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.

View 1 Replies

Flex :: FileReference And HttpService Browse Image Modify It Then Upload It?

Sep 23, 2009

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.

View 1 Replies

Flex :: Generate Screenshot And Send It To Server (not Using FileReference.upload)?

Dec 10, 2009

Do you have any ideas? how to generate screenshot and send it to server (not using FileReference.upload)?

View 2 Replies

Flex :: Incorporate FileReference Method Like Upload Into A Cairngorm Architecture?

Jan 14, 2010

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.

View 1 Replies

ActionScript 3.0 :: Using FileReference's Upload To Call A PHP Script From One Folder & Upload Elsewhere?

Sep 9, 2009

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?

View 1 Replies

Preloader Doesn't Work When Upload The Swf Files To Server

May 18, 2009

I created a preloader. When I test it in Flash CS4, it works fine. When I upload the swf files to my server, the preloader doesn't work. I put both swf files in the same folder.

View 1 Replies

ActionScript 2.0 :: XML OnPress - Call Full Image And Try To Upload Doesn't Work

Sep 10, 2008

i have a little trouble with my xml menu, i have this code, but went i call my full image and try to upload doesn't work. I try to put my full image in and Movie Clip with the name of contenedor. But appear a message saying "Error opening URL All work perfect less the onPress.

[Code]....

View 1 Replies

ActionScript 3.0 :: Password Authentication For Php Upload?

Sep 4, 2011

I'm making an Air file that uploads and overwrites an XML file.

So far, the php is very simple:
 
$everything = $_POST['saveThisXML']; 
$everything = stripslashes($everything); $toSave = $everything; 
$fp = fopen("settings.xml", "w");  if(fwrite($fp, $toSave)) echo "writing=Ok";  else echo "writing=Error"; fclose($fp);

I'd like to set up a user name and passowrd that the user enters in the Air app.  Is it then just a matter of sending POST data to the php file, and have it check the user and pass variables?  Is that a reasonably safe way to do it?  If not, can someone please point me in th edirection of a good tutorial that they're used on this topic?

View 9 Replies

ActionScript 2.0 :: (MX) XML File Doesn't Load When Upload

Oct 9, 2004

I created a movie that loads an XML file into flash and then.. does stuff with it (Like put text into text fields) My problem is that it works when I test it on my computer, but when I upload it and test it on my website, the XML file doesnt load. The movie is the XML load into has been loaded dynamically, as has the one above it (Like this: Lobby Clip > Games room clip > newgames Clip)

View 3 Replies

Javascript :: Agile Uploader (resizes Image Before Upload On The Server): Doesn't Work If Image Name Has Cyrillic Letters

Jan 31, 2012

I'm using Agile Uploader in my project to resize image before upload on client side.And it works fine except one thing: if image name contains cyrillic letters it fails with server error 500.

How to avoid this or if needed how to rename file with english letters "on fly" (possibly with javascript).

View 1 Replies

ActionScript 3.0 :: FileReference Upload Failure

Jul 15, 2009

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...

View 1 Replies

ActionScript 2.0 :: FileReference Freezing On Upload?

Sep 24, 2007

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]....

View 1 Replies

ActionScript 2.0 :: FileReference Upload IOError

Dec 6, 2007

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.

View 1 Replies

Actionscript 3 :: Flex URLLoader.close() Doesn't Abort Upload / Load

Nov 2, 2011

Ran into a weird Flex bug (i guess)... I am uploading using URurlLoader.load(urlRequest)... on cancel button click, urlLoader.close() is called.. but this doesnt abort the upload the file shows up on the server. Is this a Flex bug or am I missing something? Can anybody confirm if they have been able to abort an upload / load with the urlLoader.close() method call?

View 1 Replies

ActionScript 3.0 :: Upload Twice Time The Same FileReference Object?

Oct 11, 2011

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]........

View 11 Replies

ActionScript 3.0 :: FileReference Upload With Random Number?

Jan 31, 2009

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.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved