hi,
I cannot see what I'm doing wrong with upload component. I cannot send my files to a user folder.
I get the error

The save directory sites/default/files/webform/%username is not valid.

I tried different syntax but nothing helps
if I use the default "sites/default/files/webform/ " everything is fine
and the folder exist.
is there setting I did not set?
is there a way around this issue? I need seperate folder for each user uploads files
please help
Daniel

Comments

newgen’s picture

guess I'm the only one with this issue.

I uninstalled webform deleted the module and reinstalled
same issue

I installed webform on another server, it created the path, then when I try to add token same error
I checked the permissions OK.

"The save directory sites/default/files/webform/%username is not valid"
does this work in webform?? or is it only me?

anyone please
Daniel

newgen’s picture

so sorry just noticed wrong version number
webform 6.x-3.11 and I'm using drupal 6.22

Daniel

newgen’s picture

I maybe talking to myself, but is there a way, since I cannot create a folder for the user, to maybe create a unique prefix to the file??just a thought in panic

I am moderately good with PHP, I could code a patch if I knew where to look.

any feed back would be greatly appreciated.
Daniel

newgen’s picture

hi all,
I found this post http://drupal.org/node/326738
maybe it will be a concern for someone else
it gets me around this bug

thanks
Daniel

quicksketch’s picture

Status: Active » Closed (duplicate)

Yes, that's actually exactly the same issue. Tokens are not currently supported on the file directory field.