Hi,
I have built an application that allows users to send documents/files to our server. However, when I try to send a PDF file, the upload fails.
I have set the datatype to 'Mediumblob' in MySQL, but I have also tried 'int'. Neither seem to work for PDF files.
Can anyone offer a suugestion??
Thanks
Will
How can I upload PDF/Adobe files to the server?
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: How can I upload PDF/Adobe files to the server?
Why dont you just store the file in an upload directory and just store the name of the file in the database?
Re: How can I upload PDF/Adobe files to the server?
Hi jaoudestudios
That is what I have done. I have created an 'uploads' folder on my 'c' drive which stores all the docs sent to the server....But for some reason PDF files are not accepted.....Excel, word docs etc are uploaded without a problem....
There must be another doctype that I could use (?)
That is what I have done. I have created an 'uploads' folder on my 'c' drive which stores all the docs sent to the server....But for some reason PDF files are not accepted.....Excel, word docs etc are uploaded without a problem....
There must be another doctype that I could use (?)
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: How can I upload PDF/Adobe files to the server?
Do you have any filters in your code? (i.e do not allow for *.exe)WillUK wrote:Hi jaoudestudios
That is what I have done. I have created an 'uploads' folder on my 'c' drive which stores all the docs sent to the server....But for some reason PDF files are not accepted.....Excel, word docs etc are uploaded without a problem....
doctype?WillUK wrote:There must be another doctype that I could use (?)
Re: How can I upload PDF/Adobe files to the server?
Thanks jaoudestudios
Sorry for the late reply, but I've got this sorted now
Will
Sorry for the late reply, but I've got this sorted now
Will