rdubigny / cozy-music

Cozic, an open source music cloud
http://rdubigny.github.io/cozy-music/
Other
137 stars 19 forks source link

Cannot upload song #11

Closed aknock closed 11 years ago

aknock commented 11 years ago

Hi,

Cannot upload songs on Cozic .. Here's the Console debug output :

POST https://flxn.eu:26003/apps/cozic/tracks 413 (Request Entity Too Large) vendor.js:86 send vendor.js:86 b.extend.ajax vendor.js:86 Backbone.ajax vendor.js:2516 Backbone.sync vendor.js:2499 module.exports.Track.sync app.js:788 upload app.js:859 (anonymous function) app.js:888 fn vendor.js:3465 (anonymous function) vendor.js:3381 Turn It Down Animals - Kaskade's Paradiso Mash Up not uploaded properly : upload failed app.js:930

I understood that my file is too large, but how to fix it ? (14Mb)

Thank's

Antoine

aknock commented 11 years ago

Okay,

Seems to have fixed it.

I open /etc/nginx/conf.d/cozy.conf and I add

client_max_body_size 1024M;

after

gzip_vary on;

Then

/etc/init.d/nginx reload

Link : http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/

And now upload is okay. Maybe you should add it to Cozy-Setup.

Antoine

rdubigny commented 11 years ago

Thanks for this!

I'm not sure about the performance with such files. You must have a large bandwhidth to read this song since the entire 14Mb file will be downloaded each time. It could be a problem when you want to read it on data connexion on your mobile phone. Let me know if they are other problems with that.

Futhermore, I'm not in charge of Cozy-setup but I will forward this suggestion.

Don't hesitate to give me more feedbacks!

Raphaël.

aknock commented 11 years ago

I know that´s that kind of files will have poor performance on mobile connexion.

But in my case, I want to use Cozic on my personal desktop (not enough storage for all my music)

I have open an issue on Cozy-Setup.

Antoine

Antoine Knockaert

Envoyé depuis un mobile.

Le 5 nov. 2013 à 19:45, rdubigny notifications@github.com a écrit :

Closed #11.

— Reply to this email directly or view it on GitHub.