Hello everybody,
Sorry for my English, I'm French.
Here's my problem: you can not send private files to forms.
Here is the error he tells me: "File private://webform/candidature/_sid_/Test_document_PDF_4.pdf could not be moved/copied because the destination directory private://webform/candidature/9 is not configured correctly."
Yet I have configured the path of private files. To believe that it does not have the rights to create directories.
I tested by configuring the public files, and it works perfectly ... But this is not very secure ...
What do you think ?
Thank you in advance,

Comments

mmagny created an issue. See original summary.

jrockowitz’s picture

mmagny’s picture

Assigned: mmagny » Unassigned
mmagny’s picture

Hello jrockowitz and thanks,
But all permissions are yet 777...

jrockowitz’s picture

Check the ownership of the private directory.

Is the /private directory inside or outside your /files directory?

mmagny’s picture

My private directory is here : /var/www/private/
My website directory is here : /var/www/httpdocs/

Do you mean that the private directory must be in "/var/www/httpdocs/site/default/files"?

jrockowitz’s picture

Generally, the private directory should not be in '/var/www/httpdocs/site/default/files/private' unless you are using Apache with an .htaccess file protecting this directory

I bet if you do try using /var/www/httpdocs/site/default/files the error message will go away.

mmagny’s picture

As I mentioned above, I have already tested in public directories, and it works perfectly.
I did exactly as in Drupal 7. I put the files out of "/var/www/httpdocs/".
What else do I need to do?

jrockowitz’s picture

Status: Active » Closed (works as designed)

This is most likely a permission/access control issue.

Since this is not a Webform related issue, you should post this problem on http://drupal.stackexchange.com/