It actually doesn't have anything to do with the filename, it's
actually the file size. FileReference can't upload files that are 0KB.
Add some characters to 'new document.txt' and the upload will be fine.

I added a try/catch to notify the user if this happens:

try {
        file.upload(uploadUrl);
                } catch (error : Error)
                {
                        Alert.show("'" + file.name + "' cannot be uploaded 
because
it is an empty" + 
                                        " file. Files cannot be 0 KB in size.", 
"Upload Error...");
                        return;
                }

--- In [email protected], Yiðit Boyar <[EMAIL PROTECTED]> wrote:
>
> when i'm working in my locahost and try to upload a file which has
blank character(s) (e.g. new document.txt) ,
>  i get the error: text=Error #2038: File I/O Error.
> also when i uploaded my flex application to my remote server; now i
can not even upload files with names consisting no blank characters.
> 
> what can be the reason for this?
> 
> Note: my swf,php all run in the same server....
>





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to