Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pdf file upload for products


karmapool

Recommended Posts

Posted

Hello,

 

I am trying to create a pdf upload for product brochures. I am modeling the pdf upload off of the image upload. Where I seam to run into problems is in the phrase() function in upload.php.

 

Where are the $_FILES[$this->file]['name'], $_FILES[$this->file]['type'], $_FILES[$this->file]['size'], and $_FILES[$this->file]['tmp_name'] values set?

 

I have been banging my head against this one all day and any help at all would be greatly appreciated.

 

Thanks for your time

Posted

Hay there is a contrubition for this called.. PDF upload and display

 

i have made a few mods!

 

you can see it in action on my site. w w w . w i f i g e a r . c o . u k

 

sorry about the spaces in the URL but dont want google indexing my site from here!

 

hope you enjoy.

Posted

Hey - sorry to sidetrack the conversation - but I am using the pdf upload contrib and for some reason the link to the pdf appears in products that don't have a pdf!

 

Any ideas?

Posted
Hey - sorry to sidetrack the conversation - but I am using the pdf upload contrib and for some reason the link to the pdf appears in products that don't have a pdf!

 

Any ideas?

 

I have noticed that sometimes if you upload a large PDF, (not sure what the max size is) that it does not get uploaded.!

 

What i do is FTP the pdf's and that way i know that they are there.

 

If the link is not there then check the products table for the PDF name, think that it is next to the image name.

 

Cheers

 

Mjulesy

Posted

The problem I have is that the pdf link is showing up for products that dont have pdfs :( The link appears and if clicked gives a file not found error :(

 

Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...