Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and commented@see https://www.google.com/search?q=destination+directory+private%3A%2F%2F+i...
Comment #3
mmagny CreditAttribution: mmagny commentedComment #4
mmagny CreditAttribution: mmagny commentedHello jrockowitz and thanks,
But all permissions are yet 777...
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and commentedCheck the ownership of the private directory.
Is the /private directory inside or outside your /files directory?
Comment #6
mmagny CreditAttribution: mmagny commentedMy 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"?
Comment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and commentedGenerally, 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.
Comment #8
mmagny CreditAttribution: mmagny commentedAs 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?
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThis 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/