You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If upload_to parameter of FileField is set, the name attribute of File model contains a slash. Since this is relative path on the filesystem, on Windows this is a backward slash (\). This may not be a problem, however, it is passed unchanged to url() and the resulting file URL contains a mix of forward and backward slashes. When using URL_METHOD_2, it is even escaped.
The text was updated successfully, but these errors were encountered:
menesis
added a commit
to menesis/django-binary-database-files
that referenced
this issue
Feb 10, 2025
If
upload_to
parameter ofFileField
is set, thename
attribute ofFile
model contains a slash. Since this is relative path on the filesystem, on Windows this is a backward slash (\
). This may not be a problem, however, it is passed unchanged tourl()
and the resulting file URL contains a mix of forward and backward slashes. When usingURL_METHOD_2
, it is even escaped.The text was updated successfully, but these errors were encountered: