Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flex 3 - CF9 filereference.upload test

Community Beginner ,
Oct 10, 2009 Oct 10, 2009

Hi
i run a filereference.upload test flex application which uploads a file through a coldfusion server.
i’m using flex 3 and coldfusion 9.
i’m also passing parameters in the URLRequest that points to the upload cfm file.
when i run my test using the built-in web server (Jrun) all seems to work just fine
when i run the same test on a coldfusion instance that runs on Apache web server, it throws a I/O Error…

i suspect i’m missing some kind of a configuration i need to perform when moving to a production setup rather then a development environment…

can anyone guide me through this?
does it have to do with security? on the client? on the server?
i’m still running on localhost…

summery...

attached are the mxml file and the cfm file

works great on built-in server

throws a I/O error when runs through Apache

cheers

606
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 10, 2009 Oct 10, 2009

Hi,

You need to disable the ModSecurity module.

It can be acheived like this,

Add a .htaccess file to the directory which contains the mxml source file and also to the directory to which you are trying to upload the files.

and that .htaccess file must contain the below lines,

SecFilterEngine Off
SecFilterScanPOST Off

I hope this will resolve your issue.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 10, 2009 Oct 10, 2009
LATEST

If you want to test against another implementation, I wrote a Flex Upload component and CFML script a while back. I've used it regularly on IIS and Apache server (and my localhost) without having to modify the configuration at all. Speaking of the config, Daverns could be totally right ... and this post is not to refute or argue the point about Mod_Security; rather, its only meant as another options to test, since you were having trouble with it on the production server.

The attached Zip archive contains three files: FileUpload.mxml, SampleUsage.mxml, and fileUpload.cfm. The files are heavily commented but feel free to ping me if you have any issues with it.

Good luck!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources