PHP Simplicity Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Some of SFU features: Universal password protection, notification of uploads and logging just to name few.

Author Topic: [RESOLVED] Add alowed extensions?  (Read 4662 times)

0 Members and 1 Guest are viewing this topic.

origin

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
[RESOLVED] Add alowed extensions?
« on: June 18, 2006, 08:55:28 PM »

Hello, I have downloaded SFU 1.3.2 and I uploaded it to my server. I want people to be able to upload video files (avi, mpg, mpeg, wmv, ect...) But when I tried adding it in the allowed extensions I screwed up everything. Is there a way to add the mentioned extensions to the allowed list?
Thanks
« Last Edit: June 19, 2006, 12:08:28 AM by origin »
Logged

drig

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Add alowed extensions?
« Reply #1 on: June 18, 2006, 09:10:11 PM »

In SFUConfig.php
...

Code: [Select]
$allowed['image'][] = 'gif';
$allowed['image'][] = 'jpg';
$allowed['image'][] = 'png';
$allowed['image'][] = 'jpeg';
$allowed['image'][] = 'bmp';
$allowed['image'][] = 'tiff';
$allowed['image'][] = 'tif';

View the config for information on what type of thing you are uploading.
It is about 2/3 way down.
Logged

origin

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Add alowed extensions?
« Reply #2 on: June 18, 2006, 09:24:30 PM »

thanks a lot  ;D
Logged

origin

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Add alowed extensions?
« Reply #3 on: June 18, 2006, 09:36:23 PM »

it doesn't work... I added this:

Quote
$allowed['package'][] = 'wmv';
$allowed['package'][] = 'avi';
$allowed['package'][] = 'mpeg';
$allowed['package'][] = 'mpg';
$allowed['package'][] = 'mp3';

Those files don't upload, no message either. What is wrong?

EDIT
nothing at all uploads. Could someone give me there config files that work please?
« Last Edit: June 18, 2006, 10:42:54 PM by origin »
Logged

origin

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Add alowed extensions?
« Reply #4 on: June 18, 2006, 10:40:11 PM »

I know why some files weren't working. None can have spaces in the name. I feel pretty dumb  :-[
« Last Edit: June 18, 2006, 10:51:03 PM by origin »
Logged

drig

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: Add alowed extensions?
« Reply #5 on: June 19, 2006, 12:01:07 AM »

So is the problem correct or are you still having some troubles?
Logged

origin

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: [RESOLVED] Add alowed extensions?
« Reply #6 on: June 19, 2006, 12:08:43 AM »

the problem is fixed
Logged

drig

  • Newbie
  • *
  • Offline Offline
  • Posts: 6
    • View Profile
Re: [RESOLVED] Add alowed extensions?
« Reply #7 on: June 19, 2006, 01:47:32 AM »

great
Logged

Saleh

  • Administrator
  • Full Member
  • *****
  • Offline Offline
  • Posts: 222
    • View Profile
    • PHP Simplicity
Re: [RESOLVED] Add alowed extensions?
« Reply #8 on: June 20, 2006, 07:01:36 AM »

I am extremly sorry for not responding in a timly manner :(
was bust the last few days.. anyway, glad you could work it out and thanks drig for help ;)
Logged

We don't need a reason to help people

driven13

  • Newbie
  • *
  • Offline Offline
  • Posts: 4
    • View Profile
Re: [RESOLVED] Add alowed extensions?
« Reply #9 on: June 26, 2006, 12:18:57 AM »

You said that the way you resolved your problem was by taking out the spaces from the names of the files you are uploading.

That's weird, as I can have spaces in the file names that I am uploading with no problem at all.....the script changes it to an underscore (_)....e.g. "dol man.jpg" gets renamed after to "dol_man.jpg" after upload.

--D.
Logged
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.
Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
Are you a bot/spammer?: