0

I wanted to use the 'file' field type in webform for file submission on my website, but I was getting this error message:

The save directory could not be created. Check that the webform files directory is writable.

Any suggestions?

2

3 Answers 3

2

First go to "Administer -> Site Configuration -> File System -> File System Path" configuration page. verify your file path and temp path given no error.

change permissions(writable) to files folder under "sites/default/files".

2
  • Thank you very much. I have created a form to browse and upload a file, but it is giving this error: • Warning: move_uploaded_file(public://webform/testing.docx) [function.move-uploaded-file]: failed to open stream: "DrupalPublicStreamWrapper::stream_open" call failed in file_save_upload() (line 1528 of C:\inetpub\vhosts\uniontrusteeslimited.com\httpdocs\newsite\includes\file.inc). The error comes up after clicking upload.
    – Ade
    Commented Apr 2, 2013 at 7:43
  • Continuation of the error message: • Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\Windows\Temp\phpE4EC.tmp' to 'public://webform/testing.docx' in file_save_upload() (line 1528 of C:\inetpub\vhosts\uniontrusteeslimited.com\httpdocs\newsite\includes\file.inc). • File upload error. Could not move uploaded file.
    – Ade
    Commented Apr 2, 2013 at 7:46
0

If you are Linux user go to your files directory and type the following command:

chmod -R 0777 .

2
  • 1
    permissions should be 755. 777 not recommended
    – monymirza
    Commented Mar 28, 2013 at 11:18
  • 755 only works when the user the webserver runs as owns the files directory.
    – mpdonadio
    Commented Mar 28, 2013 at 12:58
0

if webserver user does not owns filesystem then use 775 at most

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.