I created a new content type with an image field (using private upload destination).
When I upload a new image and save the new node, I get the following errors:
Warning: parse_url(private:///1224614090.png) [function.parse-url]: Unable to parse URL in _filefield_paths_replace_path() (line 409 of /home/foo/public_html/sites/all/modules/filefield_paths/filefield_paths.module).
Warning: rmdir(/home/foo/files/private:) [function.rmdir]: No such file or directory in drupal_rmdir() (line 2332 of /home/foo/public_html/includes/file.inc).
The node is successfully created and the image is uploaded to the private file system path, but when I view the newly created node, no image is displayed. When I view the image at its URL http://www.example.com/system/files/1224614090.png, I get Access denied.
My private file system path is set to /home/foo/files. This is outside the web root. I have also tried within the web root and get the same errors. The directory has permissions set to 777 so this should not be a problem.
Where am I going wrong?
Solved: See http://drupal.org/node/1384014
Comments
Same Issue...
Sorry, I posted in wrong thread, Too many tabs :(