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
I try to upload a file through the attach field from a custom doctype.
When I save the new document with an attachment, I get this error message (it means: "file /private/files/MyFile.txt does not exist):
For debug, I looked into the JS console where I found this error:
I also had a look into the network history where I found a response “DoesNotExistError” to the request to /api/method/upload_file
At this point, my document is saved, but not any file has been saved in the folder /private/file. But, once the document is saved, when I change the attached file or reload it from the attach field
And now, the file is correctly uploaded.
Context information (for bug reports)
frappe version: 13.11.0
I am the Administrator, I have all the permissions.
The folder /private/files is owned by the user frappe on the system.
Output of bench version
frappe 13.11.0
erpnext 13.11.0
mymodule 0.0.1
Steps to reproduce the issue
Upload a file through a attach field
Once the document has been saved, reload the attached file
Observed result
The file is not uploaded when the document is saved, it is uploaded when I reload it after the document has been saved.
Expected result
I would like the file to be uploaded when I save the document.
Stacktrace / full error message
None
Additional information
Version installed through docker_frappe
The text was updated successfully, but these errors were encountered:
Dears,
I am still facing this issue, I am still interesting for any suggestion or any help !
I have more details about the bug here after:
Before saving my new document, just after upload a new file:
At this moment, not any file has been created on the server.
But, if I use the function "Clear" ("Clair" above in french), and that I upload the same document. Now there is a file that is created on the server in the folder private/files.
Description of the issue
I try to upload a file through the attach field from a custom doctype.
When I save the new document with an attachment, I get this error message (it means: "file /private/files/MyFile.txt does not exist):
For debug, I looked into the JS console where I found this error:
I also had a look into the network history where I found a response “DoesNotExistError” to the request to /api/method/upload_file
At this point, my document is saved, but not any file has been saved in the folder /private/file. But, once the document is saved, when I change the attached file or reload it from the attach field
And now, the file is correctly uploaded.
Context information (for bug reports)
Output of
bench version
Steps to reproduce the issue
Observed result
The file is not uploaded when the document is saved, it is uploaded when I reload it after the document has been saved.
Expected result
I would like the file to be uploaded when I save the document.
Stacktrace / full error message
None
Additional information
Version installed through docker_frappe
The text was updated successfully, but these errors were encountered: