• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Can't upload a file using swfupload


Active member

I'm moving my forum to a VS where I've installed/configured all myself, and it seems I can't upload a file through swfupload. To be more precise, once I valid, file is uploading (not sure where), then when completed, the error appears at this time.

Note: without the flash uploader, it works fine.

Not sure what information I can provide but here some :
  • Debian 6, 32 bits (precise)
  • Nginx 1.2.3
    • user set to www-data
  • Php 5.3.16-1~dotdeb.0
    • with FPM/FastCGI support
    • user and goup on www-data
    • Listen on a socket
    • listen.owner/group on www-data and listen.mode on 0666
Here an example of what says the Chrome console :

Tried to search obviously before posting, but the possible solution found was not working, like :
fastcgi_pass_request_body off;
        client_body_in_file_only clean;
        fastcgi_param REQUEST_BODY_FILE $request_body_file;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 256k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
client_body_buffer_size 10m;
client_max_body_size 16m;
Nothing work.
I would appreciate any ideas.


Active member
Well... I've found the solution myself.

I've tried randomly to disable URL rewriting in the option, and the flash uploader was working.
So, after many tries playing with regex in the nginx file, adding this works fine, after location / :

location ~* /attachments/do-upload
    try_files /index.php?attachments/do-upload.json?$args /index.php?$uri&$args;