YunoHost-Apps / snserver_ynh

Standard Notes Syncing Server
https://standardnotes.org/
GNU Affero General Public License v3.0
6 stars 4 forks source link

File attachment doesn't work #107

Open Delegator9176 opened 2 years ago

Delegator9176 commented 2 years ago

I am on 2022.11.13~ynh1 and with my Linux (and other clients) on the latest Version (Desktop 3.100.17)

When I try to attache something it just says ... there was an error could not attache the file.

The other Pro features are working well. What other information I can provide?

Thanks in advance :)

FabianWilkens commented 2 years ago

I just tried it myself. Web 3.96.1 and Desktop 3.100.17 are working on my site. But on my Smartphone it is not working on my site.

Can yu activate the console on your client and check the output when you try to upload something.

Delegator9176 commented 2 years ago

Sorry but when I look at the console there is nothing beside these two errors (which are there from the beginning) cant see anything else.

snjs.js:43328 Cannot read properties of undefined (reading 'token')
createWebSocketConnectionToken @ snjs.js:43328
DevTools failed to load source map: Could not parse content for file:///app/standardnotes/resources/app.asar/dist/preload.js.map: Unexpected end of JSON input

Maybe you can gide me what to do exactly :smile:

FabianWilkens commented 2 years ago

Hoped that there will appear some errors during the upload.

Could you try to create a new account and see if you have there the same problem. It can take up to five minutes until the new user has the Pro features activated.

Delegator9176 commented 2 years ago

I created a new user and waited untill the pro features were available. But that didn't work either

FabianWilkens commented 2 years ago

I think i now know where the problem is.

I have no problem to upload files from all clients if the file size is bleow 1MB. If it is over 1MB i am not able to upload as well.

If you can confirm that this the same problem you can fix it yourself or wait for the next update. Add this client_max_body_size 100M; before the last line in /etc/nginx/conf.d/YOUR_DOMAIN.TLD.d/snserver.conf

// Edit: Upload of files over 1MB is working. But the preview and download of those files is not working yet.

Delegator9176 commented 1 year ago

Choosing a file smaller than 1 MB works for me too.

Great!

I will try to change the config. Thanks for digging in to find the cause.