Author Topic: How can I allowed file extensions?  (Read 4996 times)

0 Members and 1 Guest are viewing this topic.

Offline RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
How can I allowed file extensions?
« on: March 25, 2006, 10:28:54 PM »
hello


I tried to add .jar to the list of valid file types. I added it to the settings, to the upload_definitions.php and to templates directory. It still will not allow .jar files to be added.

can anyone give me the line to added to the upload_definitions.php please ?


With My Best Regards,

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: How can I allowed file extensions?
« Reply #1 on: March 25, 2006, 10:38:53 PM »
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 RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How can I allowed file extensions?
« Reply #2 on: March 26, 2006, 01:54:33 PM »
hello V@no  ,

i have seen FAQ but i don't see anything about .jar files ! so i wrote this post


if you can put it the line to add in upload fie please

Best Regards,

Offline RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How can I allowed file extensions?
« Reply #3 on: March 26, 2006, 02:14:28 PM »
i tried add this code in upload_difinithions.php

$mime_type_match['jar'] = array("application/x-zip-compressed");


but still give error msg when upload new file in admin area


any advice


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: How can I allowed file extensions?
« Reply #4 on: March 26, 2006, 04:49:05 PM »
Please read the FAQ and do what it sais there but for your jar extensions.
We are not going to post for each and every extension a separate tutorial, because first of all it would be insanity, and secondly, they all have the same procedure to make it work. So, again, follow the instructions in the FAQ. I think it explains there pretty well with all little details you need to know.
« Last Edit: March 26, 2006, 05:01:54 PM by V@no »
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 RED_LINE

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How can I allowed file extensions?
« Reply #5 on: March 26, 2006, 04:51:13 PM »
i understand ,  thank you