BuddyDev

Search

Error HTTP when trying to upload a file

  • Participant
    Level: Initiated
    Posts: 6
    Dave on #39901

    Hello,

    First of all, good plugin.

    Hope you can help me, I have a problem trying to upload .doc, .docx files. I can upload them through the native WordPress media file interface. I can also upload pdf, jpg files etc.

    This error only occurs when trying to upload .doc, .docx files.

    I hope you can help me.

    Thank you so much for everything.

  • Participant
    Level: Initiated
    Posts: 6
    Dave on #39902
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #39903

    Hi Dave,
    Thank you for using MediaPress.

    The extensions .doc, .docx are not anbled by WordPress for security reasons. You will need to enable the mime types for these extensions.

    You can use a plugin like this https://wordpress.org/plugins/wp-extra-file-types/ to allow these extensions.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 6
    Dave on #39912

    Hello,

    Thank you very much for answering.

    I have installed the plugin that you indicate and it does not work.

    I also activated the function: define (‘ALLOW_UNFILTERED_UPLOADS’, true);

    and it still doesn’t work, it only happens with: .doc and .docx

    Thank you

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #39916

    Hi Dave,
    Thank you for the reply. Did you enable the extensions using the plugin?

    The constant ALLOW_UNFILTERED_UPLOADS only works for administrators. Please let me know if you have it enabled using the plugin?

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 6
    Dave on #39924

    Hello,

    I do not have the function enabled.

    In the plugin that you indicated, add the doc and docx extensions but it still gives the same error.

    Thank you

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #39938

    Hello Dave,

    Can you please share the error you are getting when trying to upload a doc file? Also, Let me know where you are trying to upload the doc file. I have tried uploading doc files on the activity directory on my development server and it is uploading with no error.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 6
    Dave on #39956

    Hello,

    Sorry for the delay.

    I am trying to load it on the main page of a group. The error is as follows:

    Phases project.docx (8 kb) x HTTP error.

    Thanks

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2934
    Ravi on #39964

    Hello Dave,

    Thank you for the acknowledgment. But this does not make the issue clear. Please try to debug it more to get the actual error. Take the reference from the following document and post the actual error.

    https://wordpress.org/support/article/debugging-in-wordpress/

    Regards
    Ravi

    • This reply was modified 2 years, 8 months ago by Ravi.

The topic ‘Error HTTP when trying to upload a file’ is closed to new replies.

This topic is: not resolved