Error when Uploading image #340
Answered
by
adamghill
Jocelyn-AGORO
asked this question in
Q&A
-
I want to upload a file related to an article, but I am getting this error : "The joined path (C:\fakepath\image.jpg) is located outside of the base path component (C:\Users\PC\PycharmProjects\django_example\media)" Article Model :
Submit method :
Form
|
Beta Was this translation helpful? Give feedback.
Answered by
adamghill
Jan 26, 2022
Replies: 1 comment
-
I've never tried uploading before. However, I do have a draft PR to make this easier in the future, but I never finished it completely. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
adamghill
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've never tried uploading before. However,
C:\fakepath\image.jpg
is a security feature of browsers. You might need to string replaceC:\fakepath\
with something else to get it working.I do have a draft PR to make this easier in the future, but I never finished it completely.