• Resolved byoriginaldesign

    (@byoriginaldesign)


    When clicking Upload & Attach a PDF File it appears that the file uploads properly, as the file does display with ID and it appears to start moving forward to getting tags, but it then displays file upload failed in red at the top, and if you attempt to get tags again, it tries for a few seconds and then displays file upload failed again.

    I tried renaming the file, a reduced sized different PDF, but had same results.

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author maximum.software

    (@maximumsoftware)

    I’m sorry you are having difficulties.

    Can you try the following file?
    https://help.adobe.com/en_US/Acrobat/9.0/Samples/interactiveform_enabled.pdf

    Can you send me your phpinfo() output?

    I believe this issue is related to uploading of the file from your web server to the API server. I’m not entirely sure what is causing this. It would help me debug the issue if you can give me access to your WP installation (email [email protected]).

    michielkleinhorsman

    (@michielkleinhorsman)

    Goodmorgning,

    I got the same problems. But the https://help.adobe.com/en_US/Acrobat/9.0/Samples/interactiveform_enabled.pdf works fine.

    Can you help me?

    Plugin Author maximum.software

    (@maximumsoftware)

    Sure thing. It looks like the problem is related to something with the PDF file. Please send it to my email (admin at maximum dot software).

    Plugin Author maximum.software

    (@maximumsoftware)

    I can confirm there is a problem with large PDF files, I am working on a fix which I will deploy in a few hours.

    Plugin Author maximum.software

    (@maximumsoftware)

    The issue is resolved. The problem was with error reporting.

    Maximum file size allowed with the Pdf.Ninja API is 2 MiB (if you are on the free tier). The PRO tier allows PDF file sizes up to 32 MiB.

    If you are trying to use a PDF file that is larger than the above limits, you will now get a more user friendly error message.

    I recommend minimizing PDF file sizes as much as possible because it will decrease the size of your email messages as well as speed up form submissions on your site.

    I’m having trouble uploading a pdf file as new media. The browser finds the file on my operation system, but then throws up an http error message and goes to a “Hmmm… cannot reach this page” screen. Using MS Edge browser. Uploading a 5.8MB file – permitted 64MB. Smaller (50KB) files work fine.

    • This reply was modified 6 years, 8 months ago by johndehnel.
    Plugin Author maximum.software

    (@maximumsoftware)

    What version of MS Edge are you using?

    Regarding file size, the free tier on Pdf.Ninja API has a limit of 2 MB, so, you are going to have issues with that unless you have the pro key.

    Plugin Author maximum.software

    (@maximumsoftware)

    I am unable to reproduce this with any version of MS Edge. It is possible some other plugins might be causing your problem. Or it may be something obscure, I am not sure. If you like, I can access your wp-admin and try to debug it.

    Thanks. Problem overcome. I tried it when at a venue with better internet speeds, and had no problem. It was probably that my download speed at home is so poor it was timing out. Thanks for the suggestion I might need to up the PHP max execution time
    https://php.net/manual/en/info.configuration.php#ini.max-execution-time. I’ll keep that tip for next time I want a larger download while at home.

    Plugin Author maximum.software

    (@maximumsoftware)

    Good to hear.

    Usually uploads to the API server are quick because they are done from the web server which usually has a fast connection. So, max_execution_time is probably not your problem. I think the upload_max_filesize and post_max_size settings are more relevant in your case. However, I can’t see how they can cause the browser to go to another page because the file upload is an AJAX POST. I am still not sure what’s going on here.

    As a trial run a week ago, I uploaded and inserted a pdf file in a page on a WordPress site that I am developing. It works exactly as required. But when I tried again yesterday and this morning, nothing happened.
    I can upload pdf files from my computer and they go to my Media Library. There I click on the file and “Insert into page” but nothing happens – no error message, no visible change on the page in the dashboard, no change in the page on the actual site when I refresh it. I tried to insert on another page the file that I uploaded and inserted last week – but again, no result at all.
    I have looked at all the relevant WP Beginner and www.ads-software.com guidance pages that I can find, and not found anything that was any help.
    What can I do about this?

    • This reply was modified 6 years, 7 months ago by yapjfq.

    In the fifth line of my request (above), I wrote “no error file.” That should be “no error message.”

    As a trial run a week ago, I uploaded and inserted a pdf file in a page on a WordPress site that I am developing. It works exactly as required. But when I tried again yesterday and this morning, nothing happened.
    I can upload pdf files from my computer and they go to my Media Library. There I click on the file and “Insert into page” but nothing happens – no error message, no visible change on the page in the dashboard, no change in the page on the actual site when I refresh it. I tried to insert on another page the file that I uploaded and inserted last week – but again, no result at all.
    I have looked at all the relevant WP Beginner and www.ads-software.com guidance pages that I can find, and not found anything that was any help.
    What can I do about this?

    Plugin Author maximum.software

    (@maximumsoftware)

    Are you trying to insert PDF files on WordPress pages or Contact Forms 7 forms? It sounds like you are not using Contact Form 7 to do this. There is no button with a caption ‘Insert into page’ in this plugin. You have to use the ‘PDF Form’ button in Contact Form 7 edit interface to add a PDF form onto your CF7 form.

    Thank you for your reply but I don’t entirely understand it. Are you saying I should or I shouldn’t use a Contact Form 7 if I want to insert pdf files?
    Last week I inserted a pdf file on a WordPress page, and my question was why I am unable to do so now. I have to admit that previously I faced the same problem with that page and that file as now, and I don’t know how it came to be resolved, if only for a few days.
    So can you please clarify your advice? Thank you in advance.
    Tom

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘PDF file upload failed’ is closed to new replies.