I can't seem to upload a pdf file through creating an ipaper node and attaching it. I can upload it straight to the scribd.com site though, and I can also attach and upload any other kinds of files through drupal... just not pdf's. Any idea why this might be? Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Scribd error pdf.jpg | 38.59 KB | Bigpappaj |
Comments
Comment #1
rares commentedwhat error message do you get? does the file upload but does not convert successfully or does it not upload at all when you are trying to create your node? also, can you verify that your PDF file(s) is(are) not significantly larger thank the other files.
Comment #2
Bigpappaj commentedSorry about that, I meant to include my error in the last post.... here is a screen shot of exactly what I am getting. And the pdf I am currently trying to upload is only 12k. The file doesn't appear to be uploaded (when I check my scribd account it isn't there).
Comment #3
rares commentedThe 500 error is usually entirely dependent on how Scribd handles your file. I think that your file made it to their site OK.
Can you try this again tomorrow to see if it changes? Also, please try with different files. Finally, try to upload exactly that file to Scribd directly. If that works, try renaming the file before you upload it in Drupal.
Comment #4
Bigpappaj commentedThis is really odd... after a ton of different pdf file uploads... I have come to a conclusion. I believe that the ipaper module doesn't like uploading small pdf files... I tried uploading several files of 100+K size through drupal... and all of them worked. When I try to upload pdf files of between 10-30K they all fail. I am able to upload the smaller pdf files directly to scribd.com no problem. Could you think of some reason this would be? Thanks!
Comment #5
rares commentedwhat about small .doc and .txt files?
Comment #6
Bigpappaj commentedSure enough, it would appear that this is as well the case. I created a small test.docx file of 10k, tried to upload it and got the same error... but I have uploaded other larger files so I know it works with them.
Comment #7
Bigpappaj commentedI reopened that same document... pasted a picture a bunch of times increasing the document size to about 37K... and then it uploaded fine.
Comment #8
rares commentedis this on the windows server on which CURL was not working because the paths to the files were not absolute (#462108: Upload fails on Windows server). Are you getting this when using the patch that forces the module to use fsockopen?
Rares
Comment #9
Bigpappaj commentedYep :) That's the one. I have uploaded pdf files scaling down in size and it appears that 15K is about the cutoff. Anything smaller then that doesn't upload and I get the 500 error... but anything over 15K uploads just fine.
I made this change as recommended back then:
Unless you can figure out something else, you can bypass CURL for now by searching for
if (function_exists("curl_init")) { in ipaper.module
and replace that with if (!function_exists("curl_init")) {
Comment #10
rares commentedright now I have no idea why you are getting this behavior. I will try to come up with a patch that solves the Windows CURL issue and that should get the module to work for you. in the meantime, if anyone has ideas about this, please step up.
Comment #11
Bigpappaj commentedThanks, I really appreciate the help! :) I will check out the module files and see if I can come up with anything... but my php knowledge is pretty limited lol.
Comment #12
rares commentedHi, can you try this again with the latest (6.x-1.0) version of the module? If you still get an error, try setting the HTTP request framework to FOPEN on the module administration page.