WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Flash Uploader
[resolved] Multisite upload path (5 posts)

  1. Ooypunk
    Member
    Posted 1 year ago #

    Hello,

    We are planning to use the Flash Uploader plugin on our multisite, but now something unexpected happens: the upload isn't uploaded in the expected folder, actually I can't find it anywhere, but the uploader acts as if everything was alright. No error messages, the images is quadrupled in different sizes, and it it added to the Media Library.
    When I then look in the Media Library, it is there, but no image to be viewed. Then I edit it, and see at File URL:
    http://cose.domain/files//domain/public_html_cgn/images/cose/dsc00224.jpg
    But in the settings I have at Upload Path:
    /home/testuser/domain/public_html_cgn/images/cose/

    Am I not using the right settings?

    I changed the Upload Url Path to 'cose_upload_url_path/', but that did nothing, nor did changing the Fileupload Url to 'http://cose.domain/fileupload_url/'.

    http://wordpress.org/extend/plugins/wordpress-flash-uploader/

  2. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    have you enabled the upload debug yet? There you see exactly what happens.

  3. Ooypunk
    Member
    Posted 1 year ago #

    This appeared:

    08.20.2012 12:00:35 - 1. Config loaded
    08.20.2012 12:00:35 - 2. Authenification sucessfull
    08.20.2012 12:00:35 - 3. Directory read: __/__/__/____home/testuser/domain/public_html_cgn/images/cose/
    08.20.2012 12:00:35 - 3a. $_FILES content:
    Array
    (
        [Filedata] => Array
            (
                [name] => DSC00241.JPG
                [type] => application/octet-stream
                [tmp_name] => /tmp/phpwsjL2V
                [error] => 0
                [size] => 315009
            )
    
    )
    
    08.20.2012 12:00:35 - 4. Check valid extension: DSC00241.JPG
    08.20.2012 12:00:35 - 4a. Extension valid.
    08.20.2012 12:00:35 - 5. Before move_uploaded_file : /tmp/phpwsjL2V -> __/__/__/____home/testuser/domain/public_html_cgn/images/cose__dsc00241.jpg
    08.20.2012 12:00:35 - 5a. After move_uploaded_file.
    08.20.2012 12:00:35 - 6. Uploaded.
    08.20.2012 12:00:35 - 7. Internal processing done.
    08.20.2012 12:00:35 - 9. End upload
    08.20.2012 12:00:35 - 10. End store session

    I wonder where the '__/__/__/____' before home/ comes from?

  4. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    Have you defined the upload path relative?

    __/ does come because the upload path is relative from the tfu_upload.php therefore wfu goes up to the wordpress root. Therefore the ../../../../ is added - and the log writer replaces ../ with __/ because of security issues.

  5. mdempfle
    Member
    Plugin Author

    Posted 1 year ago #

    have you started your path with ../home?

    Because I see 4 ____ with is .... so you might only have to add an additional /

    Best, Michael

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic