AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: macat on June 18, 2013, 06:18:40 AM

Title: Can't Download PDF
Post by: macat on June 18, 2013, 06:18:40 AM
Well that was quick, download page is there but when I try to download a PDF, I get this error:

GC100.pdf    694.47 KB    Error: Filetype not allowed

Is it a permission problem, if so where do I fix it?

OK, it is not just pdf's it seems to be all files, just tried a png, got this error:

4DGiftCertificateTemplate.png    537.60 KB    Error: Filetype not allowed
Title: Re: Can't Download PDF
Post by: abolabo on June 18, 2013, 06:31:29 AM
you tried to download or upload file? :o
Title: Re: Can't Download PDF
Post by: macat on June 18, 2013, 06:46:13 AM
I clicked download under Catalog, download and then click the blue button.  I upload and got those errors.  I uploaded photos for products just fine, so not sure what the problem is?
Title: Re: Can't Download PDF
Post by: abolabo on June 18, 2013, 07:00:02 AM
default file type for downloads is ARCHIVE - /.+(zip|rar|gz|7z)$/i
but you tried to upload pdf.
you can add you own type into database table resource_types.
Title: Re: Can't Download PDF
Post by: macat on June 18, 2013, 07:11:45 AM
OK, this is what Ihave and I still can't download the pdf:

Edit    Copy  Delete 5 archive download/ icon_resource_archive.png    /.+(zip|rar|gz|7z|pdf|PDF)$/i    1

Treid both lowercase and caps, still won't upload the pdf?

Just uploaded a zip file, no problem, so it is not the program, it just won't upload the pdf.
Title: Re: Can't Download PDF
Post by: abolabo on June 18, 2013, 11:50:17 AM
after cache cleaning?
Title: Re: Can't Download PDF
Post by: macat on June 18, 2013, 02:32:17 PM
Thank you, that fixed it.

I do have another question, I have 4 different gift cards, for 4 different totals, I have it set up as one product using options to allow the customer to choose the amount they want to purchase.  Is there a way to set the correct pdf download to correspond to the amount purchased or do I have to list each Gift card individually?

When I click relations and go to my pdf downloads it automatically defaults to the first one when they purchase and login to their account to download it.

Here is the gift card link to see what I mean:

http://myresq.org/crsd/index.php?rt=product/product&product_id=4
Title: Re: Can't Download PDF
Post by: abolabo on June 19, 2013, 09:20:07 AM

I do have another question, I have 4 different gift cards, for 4 different totals, I have it set up as one product using options to allow the customer to choose the amount they want to purchase.  Is there a way to set the correct pdf download to correspond to the amount purchased or do I have to list each Gift card individually?

When I click relations and go to my pdf downloads it automatically defaults to the first one when they purchase and login to their account to download it.

Here is the gift card link to see what I mean:

http://myresq.org/crsd/index.php?rt=product/product&product_id=4

i think you have to look on extension flexy promotions in extensions store of our partner. Menu extensions->extension store.
Title: Re: Can't Download PDF
Post by: macat on June 20, 2013, 02:26:22 AM
Hi,
OK, will do.  Thank you for your help.