• Resolved juliamb

    (@juliamb)


    Hi!

    I’m testing your plugin and I’m not able to add a file to a download form. Every time I select a file and try to save the form, the following error shows up:
    Warning: rename(,.../wp-content/uploads/dae-uploads/): No such file or directory in .../wp-content/plugins/download-after-email/includes/post-types.php on line 618

    I’ve checked that the folder exists on the server and that the access permissions are set to 755. I don’t understand what could be happening.
    I have the latest plugin version, WordPress is up to date and the PHP version running on the server is 7.4.11.

    Could you help me? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter juliamb

    (@juliamb)

    I update this issue because I detected that the error shows up anytime I’m trying to add a file that is not a PDF file (like image, or .xls).
    Does the plugin only let you send PDF files to download? Even the paid version of the plugin?

    Thanks, regards!

    • This reply was modified 3 years, 9 months ago by juliamb.
    Plugin Author mkscripts

    (@mkscripts)

    Hi,

    It is not supported to select an image as download file (to avoid conflicts with the media library). Furthermore, there are no restrictions on file types, except that the WordPress media library does not allow uploading all file types by default (like XML).

    There is a filter available to add mime types (like “application/xml” and “text/xml”):

    https://developer.wordpress.org/reference/hooks/upload_mimes/

    If you have any more questions, feel free to ask.

    Kind regards,
    Team Download After Email

    Thread Starter juliamb

    (@juliamb)

    Thank you for your response.

    So I basically can add all types of file WordPress accepts on its media library as the download attachment except images, am I right?

    Regards.

    Plugin Author mkscripts

    (@mkscripts)

    Yes that’s correct and what file types (mime types) the WordPress media library accepts can be managed with the mentioned filter. You can find examples of how to use this filter from the link above.

    Kind regards,
    Team Download After Email

    Thread Starter juliamb

    (@juliamb)

    Thank you so mucho for the response and support.

    Regards.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error when adding the download file’ is closed to new replies.