karmapool Posted June 15, 2005 Posted June 15, 2005 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
karmapool Posted June 15, 2005 Author Posted June 15, 2005 figured it out I needed to include enctype="multipart/form-data" in my HTML form tag
mJULESY Posted June 15, 2005 Posted June 15, 2005 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.
Guest Posted June 17, 2005 Posted June 17, 2005 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?
mJULESY Posted June 17, 2005 Posted June 17, 2005 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? <{POST_SNAPBACK}> 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
Guest Posted June 17, 2005 Posted June 17, 2005 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.