TinyPortal

Development => Support => Topic started by: wkheathjr on February 15, 2007, 03:56:42 AM

Title: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 15, 2007, 03:56:42 AM
I am adding vendor section as part of block and download management, and I would appreciate it if it is possible to upload vendor application in .pdf format (so vendor can't alter disclaimer or rules) for vendors to download and apply.

Many thanks!
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: IchBin on February 15, 2007, 04:05:35 AM
Admin > TinyPortal > Download Manager > Settings > Allowed file extensions: (add pdf here)
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: Thurnok on February 15, 2007, 04:11:36 AM
I'm not sure I understand why you want to upload a PDF file to TinyPortal.net.  Or are you asking how to allow someone to upload a PDF file to your own site?

If so, simply add the file extension to the list of allowed file extensions:
SMF ACP -> TinyPortal -> Downloads Manager -> Settings -> Allowed file extensions:


Bah.. beat me to it Ich!
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 15, 2007, 12:45:01 PM
Quote from: Thurnok on February 15, 2007, 04:11:36 AM
I'm not sure I understand why you want to upload a PDF file to TinyPortal.net.  Or are you asking how to allow someone to upload a PDF file to your own site?

If so, simply add the file extension to the list of allowed file extensions:
SMF ACP -> TinyPortal -> Downloads Manager -> Settings -> Allowed file extensions:


Bah.. beat me to it Ich!

Actually I want to upload vendor application myself for prospect vendors to download and apply before submitting the application form along with payment by mail.  And generally, I am more comfortable using .pdf format rather than to use .doc because you could edit .doc but not with .pdf

I'll give it a try this afternoon and let you know how it turned out.  Thanks!
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 25, 2007, 07:26:56 PM
Quote from: IchBinâ„¢ on February 15, 2007, 04:05:35 AM
Admin > TinyPortal > Download Manager > Settings > Allowed file extensions: (add pdf here)

I added pdf to Allow file extensions as instructed and tried to upload then got this message:

Currently you can only upload one of the following file formats:
zip,rar,doc,jpg,gif,png, pdf,

Your file was: vendorapplication.pdf
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: G6Cad on February 25, 2007, 07:29:37 PM
seems like you have a space between png, pdf,
it should be png,pdf with out the space between them, just the comma
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: brianjw on February 25, 2007, 07:31:46 PM
Quote from: wkheathjr on February 25, 2007, 07:26:56 PM
Quote from: IchBinâ„¢ on February 15, 2007, 04:05:35 AM
Admin > TinyPortal > Download Manager > Settings > Allowed file extensions: (add pdf here)

I added pdf to Allow file extensions as instructed and tried to upload then got this message:

Currently you can only upload one of the following file formats:
zip,rar,doc,jpg,gif,png, pdf,

Your file was: vendorapplication.pdf
Where you added this:

zip,rar,doc,jpg,gif,png, pdf,

to it.
NOTICE: each file type has no spaces. You have a space that is like

, pdf

Also remove the comma at the end unless you have more after the pdf file type.

It should look like this:

zip,rar,doc,jpg,gif,png,pdf


Brianjw

Edit// oh she beat me to it lol
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: G6Cad on February 25, 2007, 07:34:01 PM
Left the comma out of my replie on how it SHOULD look  :coolsmiley:
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 25, 2007, 08:50:33 PM
It worked!  Problem solved!  Many thanks!!!
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 25, 2007, 09:01:27 PM
Ok, want to hear weird part???

I tried to download the same pdf file I just uploaded and I got a error message saying that the file is either unavailable or corrupted while sending email..  (it was never sent by email)

So I decided to compress it into .zip file and upload it...  then download it and could open the zip file only to find out that the pdf file is gone.  Basically opening zip file with nothing in it.

WTF?  Am I missing something??
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: Porky on February 25, 2007, 09:02:47 PM
give me a link to your site
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: G6Cad on February 25, 2007, 09:47:49 PM
Change the permissions to the tp-downloads folder and the content inside the folder.
A common file permissionerror some hosts have, but by changing the permissions to the tp-downloads folder most of the issues will be solved
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 25, 2007, 10:50:18 PM
Quote from: G6â„¢ on February 25, 2007, 09:47:49 PM
Change the permissions to the tp-downloads folder and the content inside the folder.
A common file permissionerror some hosts have, but by changing the permissions to the tp-downloads folder most of the issues will be solved

755 or 777?  It is already 755

The link to my site is http://www.wildhogsheaven.com
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: Porky on February 25, 2007, 11:35:26 PM
I went to your download settings and after PDF for file types you put a comma. Removed the comma and it works fine
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: knat on February 26, 2007, 07:29:44 AM

zip,rar,doc,jpg,gif,png,pdf,


Should be


zip,rar,doc,jpg,gif,png,pdf


As Humanporkrind said above  ;)
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: G6Cad on February 26, 2007, 07:34:27 AM
If 755 doesent work, set it to 777
Title: Re: Any chance you could allow .pdf file to be uploaded??
Post by: wkheathjr on February 26, 2007, 01:21:16 PM
Quote from: Humanporkrind on February 25, 2007, 11:35:26 PM
I went to your download settings and after PDF for file types you put a comma. Removed the comma and it works fine

The test file you uploaded checked out ok!  The file I uploaded didn't, but I haven't tried upload anything after you fixed the problem so I will let you know when I test it tonight.