wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Insert Assets- Upload a file - Failure

Open devp01 opened this issue 6 years ago • 7 comments

Describe the bug A clear and concise description of what the bug is. The insert Assets - upload a file is showing the error upload failure.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...' Any page - Edit the page
  2. Click on '....' Insert Assets
  3. Scroll down to '....' Browse the file from your local-- Click on upload for uploading to a folder set up on the Assets
  4. See error image

Expected behavior A clear and concise description of what you expected to happen. The file should get uploaded. It used to do prior to this version Screenshots If applicable, add screenshots to help explain your problem.

Host Info (please complete the following information):

  • OS: [e.g. Ubuntu 18.04, Docker] Ubuntu 18.04
  • Wiki.js version: [e.g. 2.0.1] Wiki.js 2.1.113
  • Database engine: [e.g. postgres 9.7, mysql 5.7]

Additional context Add any other context about the problem here.

devp01 avatar Apr 08 '20 14:04 devp01

  • Post the browser console logs (F12) and screenshot of the network request (Networks tab).
  • What's the filename of the file you're trying to upload?
  • Do you have a reverse-proxy in front of Wiki.js?

NGPixel avatar Apr 08 '20 15:04 NGPixel

Which database do you use? Postgres 9.7 or MySQL 5.7? You can't have Wiki.js running from two different database :/

Smankusors avatar Apr 08 '20 17:04 Smankusors

  • Post the browser console logs (F12) and screenshot of the network request (Networks tab).
  • What's the filename of the file you're trying to upload? Application_Performance_Checklist.pdf
  • Do you have a reverse-proxy in front of Wiki.js? Yes, nginx

console during the issue occurs image

image

Networks tabI image

What I am noticing is that any file that is above 1MB in size is unable to get uploaded. I tried to upload another file which is around 600kb and it was uploaded successfully. My understanding was that the system allows file upload of size up to 5MB in size and I can see it in the past I have uploaded files that are above 1 MB and less than 5MB in the previous wiki version. How do I verify whether this issue is related to this version or not. It would be helpful if you can shed some light on this issue.

devp01 avatar Apr 10 '20 05:04 devp01

An update from my side on the above issue is that I have noticed that nginx was not allowing to upload a file size > 1 MB in size. So to increase it to 5 MB change the nginx.conf file Add the following line on the http { ......} block of the nginx.conf file. client_max_body_size 5M;

Is there any way in which we could increase the file upload to say 50MB on wiki.js Can we configure this via config.yml It would be helpful if you can provide some inputs on this.

devp01 avatar Apr 10 '20 06:04 devp01

Which database do you use? Postgres 9.7 or MySQL 5.7? You can't have Wiki.js running from two different database :/

I am using mysql. My issue was due to the nginx configuration which I modified it now.

devp01 avatar Apr 10 '20 06:04 devp01

An update from my side on the above issue is that I have noticed that nginx was not allowing to upload a file size > 1 MB in size. So to increase it to 5 MB change the nginx.conf file Add the following line on the http { ......} block of the nginx.conf file. client_max_body_size 5M;

Is there any way in which we could increase the file upload to say 50MB on wiki.js Can we configure this via config.yml It would be helpful if you can provide some inputs on this.

you can read about change the upload limit here.

Smankusors avatar Apr 10 '20 12:04 Smankusors

Thank you. Appreciate your help.

devp01 avatar Apr 10 '20 13:04 devp01