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

Issue importing attachment to the desktop application #39

Open
mcornille opened this issue Jan 25, 2023 · 4 comments
Open

Issue importing attachment to the desktop application #39

mcornille opened this issue Jan 25, 2023 · 4 comments

Comments

@mcornille
Copy link

Hi,

I am facing an issue where uploaded attachments can't be imported into the desktop application.
For what i can see:

Starting with a transaction on the phone, when done there is a file in the attachments folder of the webserver.
When starting the desktop app the paperclip icon is visible stating there is an attachment but when i try to open or import i get an error:

Can't download attachment from webapp.
Failed writing received data to disk/application

Transaction not downloaded: try to download the transaction again.

When I click ok nothing is imported and the transaction is gone from the webserver.

I am using Ubuntu with apache2 for webserver and desktop app is running on a windows pc.

Any idea where i need to look to troubleshoot this issue?

Thanks in advance

@vomikan
Copy link
Member

vomikan commented Jan 25, 2023

#36

@vomikan
Copy link
Member

vomikan commented Jan 25, 2023

Solution for Docker /var/www/html# chmod 777 attachments

@mcornille
Copy link
Author

chmod 777 was done on attachements folder as they are created when uploading.
When starting the desktop application there is an error and they are removed so it looks like the webserver side is ok.
Could it be something on the application side?

@vomikan
Copy link
Member

vomikan commented Jan 28, 2023

I created the file first .htaccess as recommended in that case. Everything works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants