Author Topic: Cant upload PDFs, WAVs in 1.7.2  (Read 14583 times)

0 Members and 1 Guest are viewing this topic.

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Cant upload PDFs, WAVs in 1.7.2
« on: March 31, 2006, 02:16:07 AM »
Hi all,
I am new to this post and I wonder if you can help.

I have just installed v1.7.2 and installation went like a dream.
I am running some test uploads and JPG and GIFs work fine. The system does not want to upload PDfs or WAV files from my computer to the system.

The error message I get when I try to upload a PDF file is:
Code: [Select]
Error uploading image file:
prospectus.pdf: Invalid file type (pdf, application/x-filler)

The error for WAV upload is:
Code: [Select]
Error uploading image file:
Windows_XP_Startup.wav: Invalid file type (wav, audio/wav)

Please help. I need to get this working by this morning, (Friday 31 March 06)!

I look forward to your help.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #1 on: March 31, 2006, 02:18:09 AM »
I need to get this working by this morning, (Friday 31 March 06)!
You would get this working 5 minutes ago, if you first visited our FAQ ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #2 on: March 31, 2006, 02:19:58 AM »
arh ha.. let me look again!  :roll:

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #3 on: March 31, 2006, 02:31:28 AM »
found it. Many Thanks.  :D

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #4 on: March 31, 2006, 03:07:24 AM »
Ive got a similar problem with TIF files.

My file is "sample.tif" and in v1.7.2 there is a line for TIFs:

$mime_type_match['tif'] = array("image/tiff", "application/octet-stream", "image/tif");
$mime_type_match['tiff'] = array("image/tiff", "application/octet-stream", "image/tif");


But there is not the media templates. I have created this and they say:

<!-- Template file for TIF Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />


<!-- Template file for TIFF Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />


When I try and upload the sample.tif file, I get the error message:

Error uploading image file:
sample.tif: Invalid file type (tif, image/tiff)


I have followed the previous instructions on the FAQs and all seems correct.
Am I missing something?!


Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #5 on: March 31, 2006, 03:57:53 AM »
I am no expert but i think Tiff files cannot be viewed on browsers. You will need to use the following code maybe?:

Code: [Select]
<!-- Template file for TIF Files -->
{media_icon}<br />

Users can only download and save the file. Also make a TIF icon.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #6 on: March 31, 2006, 04:37:33 AM »
you didnt mention one more place where you must activate it - the settings...did you add tif extension in the allowed upload extension list? ;)

P.S. darkcurves is right.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #7 on: March 31, 2006, 10:47:16 AM »
hi guys,
thanks for the reply.

Ive updated the media code and created the thumbnails to reflect the new changes as mentioned but this has no effect on the upload of the tif file. The
Code: [Select]
upload_definitions.php file is from the latest version 1.7.2, so it has all the MIME types but half of the file types dont want to upload.
4images is running on our Linux, Apache, MySQL, PHP4 & 5 server.

hmmm... This could be a problem as we need to upload tif and eps files to the gallery..

any other ideas??

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #8 on: March 31, 2006, 02:54:15 PM »
you didnt mention one more place where you must activate it - the settings...did you add tif extension in the allowed upload extension list? ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #9 on: March 31, 2006, 03:33:32 PM »
Hiya,

arh, now its in and working!

I've now tried to upload a PDF file which I have all the settings in the right place but the error message says:

Code: [Select]
Select an Image File!What does this mean?

The PDF upload worked before but not now.

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #10 on: March 31, 2006, 04:59:12 PM »
Hi,

what is the size from the file?
More then 2 MB?
I had the same problem with .wmv
The problem was here php. You must contact your hoster for allowed more upload- MB with php.

Sorry for my english :oops:

tc

kurt

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #11 on: March 31, 2006, 05:51:52 PM »
Hi Kurt,

Its actually sitting on our own dedicated server so we have control over the amount of MB upload. We are very much under our upload count.
The file size on the 'settings' is set to 5MB but the file that I want to upload is 2MB, so it should upload. I dont understand myself!




Offline darkcurves

  • Full Member
  • ***
  • Posts: 114
    • View Profile
    • KTM Railway Fan Club - Gallery
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #12 on: March 31, 2006, 06:31:42 PM »
Hmm, doesn't matter how many MB in Settings but your PHP settings for your server must be increased from 2mb which is the default. Sorry i cant explain further into technical details because never had a server. I had similar problem and told my host. They increased the file size and problem solved.  :D

Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #13 on: March 31, 2006, 07:15:33 PM »
arh ha... i'll check this with our server and tech guy. Many Thanks. :)
will let you know how I get on...


Offline boywonder

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Cant upload PDFs, WAVs in 1.7.2
« Reply #14 on: March 31, 2006, 08:34:59 PM »
YEAH! thank you guys!  :D

I've increased the php.ini size to be larger and increased the timeout session times, this seems to have done the trick. im testing out a larger file upload to the server. Fingers crossed... superbo! its worked.

What a great Forum! :)

Thanks everyone for all your help.