* Windows / MS SQL Environment

When configuring the File-System to use an absolute file path outside of the Web root, if a trailing space exists in the path string of the "Public file system path" field, the "public://" prefix is used instead of the value in the field. I believe this is the same for the Temp directory. Either way, all fields should be trimmed on setting the values.

Log errors:

Warning: move_uploaded_file(public://upload/download.jpg): failed to open stream: "StreamWrappers\QMPublicStreamWrapper::stream_open" call failed in drupal_move_uploaded_file() (line 1644 of C:\AppName\includes\file.inc).

The file permissions could not be set on C:\AppName\upload\public /.htaccess.

These messages go away when the spaces are removed at the end of the path.

CommentFileSizeAuthor
bug.png5.82 KBtgilkison

Comments

tgilkison created an issue. See original summary.

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.