# Increasing the size of upload file in Standard Notes

**URL:** https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221
**Category:** Support apps
**Tags:** english
**Created:** [January 21, 2023, 11:46am UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221 "2023-01-21T11:46:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deljones](https://forum.yunohost.org/user_avatar/forum.yunohost.org/deljones/32/7414_2.png) [@deljones](https://forum.yunohost.org/u/deljones)
#### Post date: [January 21, 2023, 11:46am UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221/1 "2023-01-21T11:46:56Z")

</div>

### My YunoHost server

**Hardware:** VPS bought online / Old laptop or computer / Raspberry Pi at home / Internet Cube with VPN / Other ARM board / …  
**YunoHost version:** 11.1.3 testing  
**I have access to my server :** Through SSH | through the webadmin | direct access via keyboard / screen | …  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no  
**If yes, please explain:**  
**If your request is related to an app, specify its name and version:** app v1.0~ynh1

### Description of my issue

Hello

If I try to upload a file larger than 1meg into Standard Notes I get an error on all platforms of the Standard Notes apps.

So it’s a server config issue. Can anyone help me please to fix this? I’m by no means an expert, I can use ssh and nano so I’m not too frightened, but the instructions need to be as clear as possible for I am a bit of a thicky!!!

I have seen this somewhere else but for the life of me I cant remember where.

Dj

---

<div class="post-metadata">

### Author: ![ericg](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ericg/32/1543_2.png) [@ericg](https://forum.yunohost.org/u/ericg)
#### Post date: [January 21, 2023, 6:46pm UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221/2 "2023-01-21T18:46:41Z")

</div>

in Standard Notes NGINX config (`/etc/nginx/config.d/standard_notes_domain.tld.d/snweb.conf`), you can add (for 50M)

`client_max_body_size 50M;`

---

<div class="post-metadata">

### Author: ![deljones](https://forum.yunohost.org/user_avatar/forum.yunohost.org/deljones/32/7414_2.png) [@deljones](https://forum.yunohost.org/u/deljones)
#### Post date: [January 21, 2023, 8:08pm UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221/3 "2023-01-21T20:08:23Z")

</div>

hello @ericg thanks very much for your reply, I do appreciate it. Today I had a look at this file and did the following changes:

```auto
sub_path_only rewrite ^/$ / permanent;
location / {
  proxy_pass http://127.0.0.1:3002/;
  proxy_http_version 1.1;
  proxy_set_header Host $http_host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection $connection_upgrade;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_buffering off;
}

location = / {
  default_type text/plain;
  return 200 "This is where Standard Notes - Syncing Server is installed.";
}

location /files/ {
  proxy_pass http://127.0.0.1:3005/;
  proxy_http_version 1.1;
  proxy_set_header Host $http_host;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection $connection_upgrade;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_buffering off;
  client_max_body_size 100M;
}

```

Have I put the

`client_max_body_size 100M;`

in the right place?

Many thanks

dj

---

<div class="post-metadata">

### Author: ![deljones](https://forum.yunohost.org/user_avatar/forum.yunohost.org/deljones/32/7414_2.png) [@deljones](https://forum.yunohost.org/u/deljones)
#### Post date: [January 21, 2023, 8:46pm UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221/4 "2023-01-21T20:46:14Z")

</div>

@ericg Just asking. Would you know why the Listed connection wont work. If I click “Create New Author” nothing happens. The button greys out, says its trying to Create the account but then just times out?

Thank you

dj

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [February 5, 2023, 8:46pm UTC](https://forum.yunohost.org/t/increasing-the-size-of-upload-file-in-standard-notes/23221/5 "2023-02-05T20:46:30Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
