After I've uploaded archives to the WebFM FTP folder, I can't move them to the Directory Tree. The following error message appears:

    * Su33TakeraEins_h_j_bl_glf.zip can not be uploaded because it does not have one of the following extensions: jpg jpeg gif png txt html htm doc xls pdf ppt pps.
    * file /www/PATHTOFOLDER/ftp/Su33TakeraEins_h_j_bl_glf.zip has no db record

Where can I set allowed file types? In the WebFM settings only the forbidden file types can be set.

Comments

Roi Danton’s picture

Furthermore - after I've added the zip extension manually to the webfm.module - I didn't found an option to change the $uploadsize variable so I've got the error:
Su33TakeraEins_h_j_bl_glf.zip can not be attached to this post, because it exceeded the maximum filesize of 1 MB.

Roi Danton’s picture

I've changed the following to be able to move a 3MB zip file from FTP to WebFM folder:

1) Adding archive to allowed file types.

Line 169:

            '#default_value' => variable_get("webfm_extensions_".$rid, "jpg jpeg gif png txt html htm doc xls pdf ppt pps zip"),

Line 1424:

    $extensions = variable_get("webfm_extensions_".$rid, 'jpg jpeg gif png txt html htm doc xls pdf ppt pps zip');

2) Increasing upload size.

Line 1425f:

    $uploadsize = variable_get("webfm_uploadsize_".$rid, 1) * 4024 * 1024;
    $usersize = variable_get("webfm_usersize_".$rid, 1) * 4024 * 1024;
robmilne’s picture

I have not paid a lot of attention to this but all these settings are presented for editting in admin-settings-webfm only if you create a role with webfm access. Without creating an additional role the ability to change these settings is not possible. On the TODO list.

robmilne’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)
bentzir’s picture

hi

where can i find this file where you changed this lines?

thanks
ben