Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-07-2006, 12:46 AM   #1
Neoarttec
Registered User
 
Join Date: Jan 2006
Posts: 2
Default Upload FileReference Bug

Thought you might be interested to know about a bug in Flash that I've
discovered. After wasting many hours.

The Flash upload changes the file type headers on the http transfer. The
images arrive sure enough. But I couldn't figure out why my script was
rejecting the images. Unitl I notice that it sends the files as a
"application/octet-stream" instead of a "image/jpeg" for instance. That is
very nasty for your serverside scripts which are expecting a certain type of
file, but Flash changes the headers.

http://www.guildmedia.net

Last edited by Neoarttec; 01-07-2006 at 12:48 AM.
Neoarttec is offline   Reply With Quote
Old 04-04-2006, 07:44 AM   #2
HBB Alfred
Registered User
 
Join Date: May 2004
Posts: 44
Default

yes, i have encounter the same question
HBB Alfred is offline   Reply With Quote
Old 04-04-2006, 12:47 PM   #3
Jotun75
Registered User
 
Join Date: Sep 2004
Posts: 9
Default Its not a bug, it is documented in flash help file

This is text from flash helpfile on the subject filereference.upload.

"The file is uploaded to the URL passed in the url parameter. The URL must be a server script configured to accept uploads. Flash Player uploads files using the HTTP POST method. The server script that handles the upload should expect a POST request with the following elements:

A Content-Type element of multipart/form-data
A Content-Disposition element with a name attribute set to "Filedata" and a filename attribute set to the name of the original file
The binary contents of the file
Here is a sample POST request:

Content-Type: multipart/form-data; boundary=AaB03x
--AaB03x
Content-Disposition: form-data; name="Filedata"; filename="example.jpg"
Content-Type: application/octet-stream
... contents of example.jpg ...
--AaB03x-- "
Jotun75 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FileReferenceList upload IOError on Mac salzbermat Flash 8 General Questions 2 02-26-2007 02:30 PM
Upload file from local PC to Server Brandon Rohde ActionScript 2.0 3 12-01-2005 03:11 PM
hardcode file to upload with FileReference() Brandon Rohde ActionScript 2.0 1 11-28-2005 11:55 PM
FileReference in AS 1? escapelab Flash 8 General Questions 5 10-22-2005 01:28 AM
image upload with coldfusion spamtheman Server-Side Scripting 0 06-28-2005 06:57 AM


All times are GMT. The time now is 07:51 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2010 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.