Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble uploading File


  • jeremybivaud
    Participant

    @jeremybivaud

    Hi,

    I created first an extra filed called CV, let user upload his CV.
    And when I try to upload different files (PDF, images) from the front-end (logged in as a user),
    I got the message “Changes saved” but my file is not stored on the server and the path of the new file is not correct :
    /wordpress/wp-content/uploads/boardingPass-2016072807431691628792.pdf

    Should be something like :
    /wordpress/wp-content/uploads/profiles/$user_id/boardingPass-2016072807431691628792.pdf

    When I am doing the same using the WP Dashboard, it works fine.

    Does this issue could come from a plugin conflict ?
    How could I check that users are allowed to upload files from the front end ?
    Which php file in the core handle this upload functionality ?

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)

  • danbp
    Participant

    @danbp

    Hi @jeremybivaud,

    without seeing your custom code, it’s difficult to say if you have some issue or conflict with other plugins.

    I can’t help you much for doing your stuff, but have you used the BP_Attachment API ? This can probably help you.

    You may also find some related topics to attachment by searching the forum. 😉


    jeremybivaud
    Participant

    @jeremybivaud

    There is no custom code.
    I just used the extra field , file. It s supposed to work.

    Profile field

    And on the front end, I got this when I display the uploaded file path :
    http://www.documentor.com.au/wordpress/wp-content/uploads/boardingPass-2016072807431691628792.pdf
    That file not exist on the server.
    I displayed error WP log message but no indication at all.

    Do you know where the upload file function is implemented in the core ?


    danbp
    Participant

    @danbp

    Do you use MediaPress plugins ? Seems accordingly to the screenshot, that you have to repair/create a page for it.

    Have you the same trouble with other format than PDF ?

    Check MediaPress settings first (or whatever media plugin you use).

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar