Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when the attached is marked as public #2

Closed
doloresjuliana opened this issue Dec 27, 2018 · 1 comment
Closed

Error when the attached is marked as public #2

doloresjuliana opened this issue Dec 27, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@doloresjuliana
Copy link
Owner

The default attachments are private and the upload to Nextcloud works correctly, but when the user marks the file as public, the following error occurs:

File "/home/erpnext/erpnext-prd/apps/pibiapp/pibiapp/nextcloud/nextcloud_apis.py", line 119, in upload
    with open(local_fileobj, 'rb') as fileobj:
IOError: [Errno 2] No such file or directory: u'./dev.xxxxx.es/files/cliente.jpg'

Despite bug, the file is correctly appended to the public folder of the site, without uploading to Nextcloud.

@doloresjuliana doloresjuliana added the bug Something isn't working label Dec 27, 2018
@doloresjuliana
Copy link
Owner Author

Version 0.1.0 corrects the error when processing attached files declared as public.

Treat public and private files differently, the former are accessible from Nexcloud with a public URL, the latter will require user access with permissions in Nexcloud, except in the case that the administrator configures a generalized public access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant