Author Topic: "Art" Type files/images & Validation  (Read 6528 times)

0 Members and 1 Guest are viewing this topic.

Offline Jay10

  • Newbie
  • *
  • Posts: 25
    • View Profile
"Art" Type files/images & Validation
« on: May 06, 2002, 09:53:39 PM »
We can upload file types such as "gif" and "jpg" but not "art". What do I need to do so the system, will accept "Art" Type files/images?



I prefer that my users be able to upload images without waiting for "Validation" from me, so where do I go to disable the "validation" feature?


Thanks.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: "Art" Type files/images & Validation
« Reply #1 on: May 06, 2002, 10:04:39 PM »
Quote from: Jay10
We can upload file types such as "gif" and "jpg" but not "art". What do I need to do so the system, will accept "Art" Type files/images?


What is .art? Never heard it before.
To add new file types add the extension the settings to "Valid file extensions". You have to add the mime types too. Do this in "includes/upload_definitions.php". Simply add a new line like this:
Code: [Select]
$mime_type_match['art'] = array("mime/type");
Replace mime/type with the mime type of the .art files.
Maybe you will find the right mime type here:
http://www.utoronto.ca/webdocs/HTMLdocs/Book/Book-3ed/appb/mimetype.html

Quote from: Jay10
I prefer that my users be able to upload images without waiting for "Validation" from me, so where do I go to disable the "validation" feature?

You can set the permissions for "Direct Upload" in the category edit screen.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Jay10

  • Newbie
  • *
  • Posts: 25
    • View Profile
"Art" Type files/images & Validation
« Reply #2 on: May 07, 2002, 05:37:57 PM »
I'll try it out. Thank you.