justmelat
asked on
Can't upload pdf file - using coding codeigniter
Odd issue here. I have a client using one of our codeigneter applications who can't upload a .pdf file. The file is 2.3 megabytes in size, but the app allows for 8mg upload. They have other requests that include 4.3mg size files, but those are docx or image files. I tried upload a very small pdf and that does work.
The file name is some like this:
Roger's We Love That 2012 Promo 10.13.pdf
And help would be appreciated.
The file name is some like this:
Roger's We Love That 2012 Promo 10.13.pdf
And help would be appreciated.
Maybe if the file name did not have the quote in it? Or the blanks. Or the periods. I would first eliminate those as possible causes of the issue by copying the file and renaming it to something like "test.pdf"
ASKER
Tried uploading a simple "sample.pdf" and it uploads fine. So I then just shortened the name of the file, no space, no periods, no underscores, it is just welove.pdf and it still will not upload
Can you post the PDF as an attached file here at EE? Or can you try uploading it to my server at this URL?
http://www.laprbass.com/RAY_upload_example.php
If you test on my server, it will ask you for up to three file names. You do not have to fill in any except the one file you want to upload.
http://www.laprbass.com/RAY_upload_example.php
If you test on my server, it will ask you for up to three file names. You do not have to fill in any except the one file you want to upload.
ASKER
Hi Ray
I wish I could, but it is a clients' confidential file, so not interested in loosing my job.. Since then though, they and we have uploaded several other files including pdf's of varying sizes, so we and the client have just determined that something was off with that document. They will bring it to our attention if it happens again.
I wish I could, but it is a clients' confidential file, so not interested in loosing my job.. Since then though, they and we have uploaded several other files including pdf's of varying sizes, so we and the client have just determined that something was off with that document. They will bring it to our attention if it happens again.
confidential file
Uhh, what ever happened to the concept of test data? If the test data works and the live data fails, the circumstances indicate that the test data does not accurately reflect the live data, and that pretty much means that the tests are untrustworthy. In any case, a professional solution would include understanding the differences between the test data and the live data. That's why I thought you might want to try uploading it somewhere else - you could see if the upload process was at fault or if other factors were at fault. Since the upload to my server only does uploads, and no other meaningful processing, it would have helped you understand where to look next.
Best of luck with it, ~Ray
Uhh, what ever happened to the concept of test data? If the test data works and the live data fails, the circumstances indicate that the test data does not accurately reflect the live data, and that pretty much means that the tests are untrustworthy. In any case, a professional solution would include understanding the differences between the test data and the live data. That's why I thought you might want to try uploading it somewhere else - you could see if the upload process was at fault or if other factors were at fault. Since the upload to my server only does uploads, and no other meaningful processing, it would have helped you understand where to look next.
Best of luck with it, ~Ray
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
found solution with help of client,.