File extension

All support enquiries for DFH go in here...

File extension

Postby jofahelmet » Mon Feb 28, 2011 1:39 pm

What file types are allowed?
I put an * for file types so that anything would be allowed but no .mp3 files are allowed?
I even tried to specify that .mp3 was the only file to be allowed but that didn't work either?
jofahelmet
Newbie Member
 
Posts: 3
Joined: Mon Feb 28, 2011 1:36 pm

Re: File extension

Postby PeterS » Mon Feb 28, 2011 3:24 pm

A few questions for you:

1) Have you updated to the lastest version of DFH v1.0?
2) Did you type in .mp3 or *.mp3? You must include the * symbol after the defined file type in order for a specific file type to work.

Please send me the script's URL via PM or alternatively include it in your next post in order for me to assist you with the issue further.

Thank you.
PeterS
Global Moderator
 
Posts: 159
Joined: Mon Feb 21, 2011 4:58 am

Re: File extension

Postby jofahelmet » Tue Mar 01, 2011 12:26 pm

1; I do have the latest DFH 1.0
2; I did type in *.mp3 with the *

I have a maximum file size of 50 (MB) but anything over 10 will not upload, then it says: "That file type is not allowed to be uploaded"
Anything below 10 seems fine: "Your file was uploaded!"

I will investigate my hosts settings.
jofahelmet
Newbie Member
 
Posts: 3
Joined: Mon Feb 28, 2011 1:36 pm

Re: File extension

Postby PeterS » Tue Mar 01, 2011 4:22 pm

Hmm.. sounds like a PHP configuration issue. You have to adjust the post_max_size and upload_max_filesize to enable uploads larger than 10MB. Do you have direct access the php.ini file? If you are on a shared plan, you probably won't so for now you'll have to modify these values by using a .htaccess file.

Follow these steps:

1) Go to DFH's admin panel --> Info --> PHP info.
2) Check the current values of the two attributes mentioned above (post_max_size and upload_max_filesize)
3) Extract the .htaccess.rar included in the DFH zip file and modify the file.
4) Delete everything in the .htaccess file and paste the following:

Code: Select all
php_value post_max_size 100M
php_value upload_max_filesize 100M
<Files *.dfh>
order allow,deny
deny from all
</Files>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]

Change 100M to whatever maximum file size upload you want.

5) Go back to DFH's admin panel --> Info --> PHP info and check if the values have changed.
6) If the values have changed, try to upload a file greater than 10MB.

Let me know what happens.
PeterS
Global Moderator
 
Posts: 159
Joined: Mon Feb 21, 2011 4:58 am

Re: File extension

Postby jofahelmet » Wed Mar 02, 2011 10:37 am

It seems to be a hosting issue, the phpinfo says:

Code: Select all
Directive   Local Value   Master Value
post_max_size   10M   10M
upload_max_filesize   10M   10M

No matter if I change the php.ini or the .htaccess file the result are the same.

My goal with the script was to have a simple way for my blogreaders to send me files, with the limit from the host theres not much you can do Im afraid, but thanks for the help anyway.
jofahelmet
Newbie Member
 
Posts: 3
Joined: Mon Feb 28, 2011 1:36 pm

Re: File extension

Postby PeterS » Wed Mar 02, 2011 8:56 pm

But usually the .htaccess works. Contact your web hoster and ask if you can modify the php.ini file via .htaccess or the actual php.ini file. If your web hoster provided you with a php.ini file, and you modified it, you must restart apache to take effect. Who is your webhoster?
PeterS
Global Moderator
 
Posts: 159
Joined: Mon Feb 21, 2011 4:58 am


Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 15 guests

cron