Page 1 of 1

How can I upload PDF/Adobe files to the server?

Posted: Mon Feb 02, 2009 1:12 pm
by WillUK
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

Re: How can I upload PDF/Adobe files to the server?

Posted: Mon Feb 02, 2009 1:15 pm
by jaoudestudios
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?

Posted: Thu Feb 05, 2009 5:33 am
by WillUK
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 (?)

Re: How can I upload PDF/Adobe files to the server?

Posted: Sat Feb 07, 2009 2:40 am
by jaoudestudios
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....
Do you have any filters in your code? (i.e do not allow for *.exe)

WillUK wrote:There must be another doctype that I could use (?)
doctype? :? Can you post your upload script?

Re: How can I upload PDF/Adobe files to the server?

Posted: Fri Feb 20, 2009 10:39 am
by WillUK
Thanks jaoudestudios

Sorry for the late reply, but I've got this sorted now :)

Will