I just installed this Module. I followed the installation instructions in the HowTo and I think I have everything set up correctly, but whenever I try to upload a file, I get the error "Invalid Upload Path".

I am running Drupal 5.1 and the path specified in the configuration exists and has 775 permission.

What am I doing wrong?

Thanks

Comments

robmilne’s picture

Sometimes 777 is required depending on the server.

The "Invalid Upload Path" may indicate that the root directory doesn't exist?

pthomson’s picture

I tried 777, too and it didn't work either.

The WebFM root directory is "filemanager", which definitely exists (I just changed it back to 777). filemanager is in the directory "files", which was set in the Site Configuration, File System path. Files is a subdirectory of public_html.

When I click to upload a file, it says "uploaded file will be saved in the current directory", then after a minute, it says "invalid upload path".

robmilne’s picture

The file-system root has to be a subdir of the drupal directory - not 'a subdirectory of public_html'.

pthomson’s picture

I've tried it now with the "files" and "filemanager" directories in my root, www, and public_html folders and I keep getting the same errors.

Sorry to be so difficult.

Pete

robmilne’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot be helpful without a lot more information. You can send me your server particulars, drupal settings and pathing via my contact page and I can take a look.

yugin’s picture

Version: 5.x-2.5 » 5.x-2.8
Assigned: Unassigned » yugin
Category: support » bug

Hi!

I got a sort of bug. This module is not compatible with Global Redirect module. The folder tree is not visible. When you try to upload a file , you get an "Invalid Upload Path" error.

I turned off the GR module, and WebFM worked again.

Drupal 5.7, PHP 5.2.4, MySQL 5.0.45

Anonymous’s picture

I had that "Invalid Upload Path" error with the 6.x version when I had
- created a role without "administer webfm" permissions, only the other 3 permissions
- not defined a specific "role root directory" for that role (just left the field empty in the role-specific settings)
- tried to upload with a user of that role

Sound reasonable: a role without "administer webfm" permissions must have a "role root directory" set because it is not allowed to access the general tree. I guess webfm should report if none such directory is set before allowing the user to select a file for upload...

Could that be the scenario you stepped on?

ShaneEaston’s picture

I am getting the same error. When create content and try to upload within IE6 it doesn't work, however with the same user and same permissions it does allow me to select a folder and upload in FF2. IE says "Invalid upload path" or "current directory undefined" in the debug dialog.

dugawug’s picture

i'm now getting this same error. i just installed the 5.x version, was careful about configuration, and i can't see any of the files i put in my directory, nor can i upload. i get the "invalid upload path" error. i'm guessing an error in configuration somewhere.

1. in the webfm admin, i set a webfm root directory of "webfm" and created the folder on my server under root/files/.

2. i checked off all 4 default file permissions

3. for Role Root directory, i set it as a folder "role" and created that folder under root/files/webfm/ I have to admit, I'm really unsure what this is all for.

4. for my drupal Admin role, i gave full permissions (all 4 checkboxes) for webfm.

still, i get nothing. logged in as an Admin or even as someone else. i also have settings>file system>download method set to public.

i will add that i have filebrowser also installed right now, too. i guess it's possible that is somehow interfering. any ideas anyone?

Countzero’s picture

Subscribing

kingandy’s picture

Encountering this with a freshly-installed WebFM on Drupal 6.12 with the most recent 6.x build (rc5).

Currently no user roles have permission to use the WebFM - only User 1. I'm guessing there's some reliance on a per-role upload path?

EDITED TO ADD: Having created a role, given it WebFM access and placed User 1 in the role, error continues. So I guess it's not that.

EDITED TO ADD EDITED TO ADD: Ah - it turned out I was trying to upload a file which was too big (forbidden both by the server's php.ini settings and WebFM's own size restriction). That places my issue under "bad error messages" rather than "bad errors".

nhck’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

As per #803722: Cease support of Drupal 5? support for D4 and D5 has been closed. Sorry, please upgrade to Drupal 6. If you think this issue still applies with Version 6.x please reopen this issue with correct version tag.

Thank you! :-)