Author Topic: Support needed to upload word document & other documents  (Read 2891 times)

0 Members and 1 Guest are viewing this topic.

Offline kapsmaze

  • Pre-Newbie
  • Posts: 5
    • View Profile
Support needed to upload word document & other documents
« on: October 11, 2006, 08:27:29 AM »
Hi

I am geeting this error.

Error uploading image file:
Storyboard.doc: Invalid file type (doc, application/msword)

I have gone through the "Adding File Extensions" post

i have mime included and i also have the corresponding doc.html in the media folder.

What is it that i am doing wrong.

The same thing works for PDF Files.

Also please suggest what can be done to avoid such errors...

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Support needed to upload word document & other documents
« Reply #1 on: October 11, 2006, 09:46:44 AM »
try the following like in this example : http://www.4homepages.de/forum/index.php?topic=7277.msg56938#msg56938

1. add doc as new file extension in your ACP -> Settings -> Valid file extensions

2. for doc-files add the following code line into your includes/upload_definitions.php
Code: [Select]
$mime_type_match['doc'] = array("application/msword");

3. create a new doc.html in templates/<your_template>/media/

4. create a new doc-icon as doc.gif in templates/<your_template>/icons/

... thats all ... mawenzi
« Last Edit: October 11, 2006, 01:06:15 PM by mawenzi »
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline kapsmaze

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: Support needed to upload word document & other documents
« Reply #2 on: October 11, 2006, 11:44:58 AM »
Hi thanks,

But i  think you did not read my post properly. I have done all that... but it still gives me error.

Any Insight!

Offline mawenzi

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Support needed to upload word document & other documents
« Reply #3 on: October 11, 2006, 01:37:34 PM »
Sorry was my fault ... I updated my post ... and now it should work ... ;)
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...