ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

EE 2.2 new install, can't upload

August 02, 2011 3:55am

Subscribe [4]
  • #1 / Aug 02, 2011 3:55am

    Andrew Waegel

    16 posts

    Fresh install on a plesk server, I’ve defined my upload directories, given them correct server-side paths (even used php echo realpath(dirname(__FILE__)) to make sure) but:

    - when I attempt to upload a file, I get a message ‘no file’ just above the file selector widget
    - I can upload a file via ftp, but I don’t see it in the file manager
    - when I attempt to synchronize, I see the message that it succeeded for one file, but I then don’t see the file listed
    - perms on the upload dir are 777
    - file_upload is “On” in php info
    - I’m uploading as super admin

    Clearly it’s some path/permissions issue, but I can’t tell what because of this unhelpful error message. Suggestions?

  • #2 / Aug 02, 2011 4:56am

    Dave @ Exp:resso

    465 posts

    You can check that XSS filtering is turned off for files, its in the security settings I think. Might help!

  • #3 / Aug 02, 2011 4:21pm

    Dan Decker

    7338 posts

    Hi Andrew,

    I’m sorry this is an issue for you. I found this similar issue. In your Control Panel, navigate to Admin->Security and Privacy-> Security and Sessions. Set the “Apply XSS Filtering to uploaded files?” option to “No” and click “Submit” to save the settings. Dave, thanks again for your help!

    Let us know if you need further assistance.

    Cheers,

  • #4 / Aug 03, 2011 5:33pm

    Andrew Waegel

    16 posts

    Thanks, that didn’t work. Also, I can’t sync files that I uploaded via FTP, which I think should be immune from the XSS checks.

    Any other ideas for diagnosing this?

  • #5 / Aug 03, 2011 6:04pm

    Andrew Waegel

    16 posts

    Belay this for now - I tried a vanilla PHP upload script and it turns out the $_FILES array is empty, so I assume this is a server config issue - I’m taking it up with the host.

    Thanks,
    - Andrew

  • #6 / Aug 04, 2011 4:25pm

    Sue Crocker

    26054 posts

    Hi, Andrew. We can leave this open for a while. Just add to the thread either way and we’ll either close the thread or continue troubleshooting.

  • #7 / Aug 04, 2011 8:12pm

    Andrew Waegel

    16 posts

    Thanks, you can close this. For the record:

    I was working on a Plesk server which has a development URL running SSL and using a longer path name (e.g. https://staging.myhost.com/sitepreview/http/mydomain.com/admin.php)

    When I add an entry in my hosts file for this domain (such that when I visited mydomain.com I went to the plesk staging server), all the problems went away. I’m not sure if it was a path issue or an SSL issue, but that’s what worked for me.

  • #8 / Aug 04, 2011 9:19pm

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases