parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

how do i get the source code so that i can modify the max file size from 20mb to 40mb?

Open pj-wilson opened this issue 9 years ago • 9 comments

how do i get to the source code so that this can be modified?

pj-wilson avatar Dec 23 '16 01:12 pj-wilson

What do you need to modify? Image uploads?

greggmojica avatar Dec 23 '16 17:12 greggmojica

I was just looking at making the maximum file size that the server can hold be larger than 20MB. i have some audio files that ti want to store on the server that will be downloaded by user and played in the app.

at the moment 20MB per file is the most i can upload through the dashboard.

On 24 Dec 2016, at 3:32 am, Gregg Mojica [email protected] wrote:

What do you need to modify? Image uploads?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ParsePlatform/parse-server/issues/3278#issuecomment-269022016, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdeoBsAMV8HxsGL66x8CzyRjeGjaEnyks5rLAWXgaJpZM4LUgne.

pj-wilson avatar Dec 23 '16 20:12 pj-wilson

So you are trying to upload the file? Files uploaded through the server must edit the nginx file limit.

greggmojica avatar Dec 23 '16 20:12 greggmojica

Yeah just manual uploading, there should be no need to programatically uploading such large files.

i am unsure what this nginx file is or how to get to it. I have the bitnami server running on amazon ec2 and haven’t come across that browsing through the contents with the SSH.

On 24 Dec 2016, at 6:45 am, Gregg Mojica [email protected] wrote:

So you are trying to upload the file? Files uploaded through the server must edit the nginx file limit.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ParsePlatform/parse-server/issues/3278#issuecomment-269043734, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdeoNQrzvJwA133gyZPhX-budpJT8fgks5rLDLxgaJpZM4LUgne.

pj-wilson avatar Dec 23 '16 20:12 pj-wilson

http://stackoverflow.com/questions/4947107/nginx-upload-client-max-body-size-issue

greggmojica avatar Dec 23 '16 20:12 greggmojica

thank you!

On 24 Dec 2016, at 6:45 am, Gregg Mojica [email protected] wrote:

So you are trying to upload the file? Files uploaded through the server must edit the nginx file limit.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ParsePlatform/parse-server/issues/3278#issuecomment-269043734, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdeoNQrzvJwA133gyZPhX-budpJT8fgks5rLDLxgaJpZM4LUgne.

pj-wilson avatar Dec 23 '16 21:12 pj-wilson

@pupoo was your issue solved? Can we close it?

natanrolnik avatar Dec 27 '16 12:12 natanrolnik

i was offered a solution but i do not think it will work for my current set up. Currently using bitnami parse server on AQS ec2 so there does not seem to be a way of modifying these config files. when logging into the server via ssh the only config file that is available is server.js and this can not be modified without crashing the server.

On 27 Dec 2016, at 10:09 pm, Natan Rolnik [email protected] wrote:

@pupoo https://github.com/pupoo was your issue solved? Can we close it?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ParsePlatform/parse-server/issues/3278#issuecomment-269317694, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdeoLTKkvKuZMSBxctw_2PzqEsBDwMQks5rMP_cgaJpZM4LUgne.

pj-wilson avatar Dec 27 '16 21:12 pj-wilson

@pupoo I recommend you one of the following things:

Checking if you are able to change the maxUploadSize in the server initialization. Usually it's done in the server.js or index.js file. If it crashes the server, probably you need to stop, modify and start it again. I think you can check their docs here: https://docs.bitnami.com/aws/apps/parse/

If you want more customization, and they are not able to provide you a good answer on how to modify that property, I suggest you to deploy your own instance of Parse Server directly on EC2 or Heroku, for example. This way you can customize it according to your needs and have a better control. Take a look at the Parse Server Example project.

As this is not a issue in Parse Server itself - maxUploadSize works as expected - I'm closing it, but feel free to add the solution you found as it may help other people that decided to use bitnami.

natanrolnik avatar Dec 28 '16 09:12 natanrolnik