Git Product home page Git Product logo

Comments (4)

andrebola avatar andrebola commented on July 17, 2024

Yes, the mp3 returns 404. I think this is because of spaces (or other characters) in the file name:

http://dunya.compmusic.upf.edu/document/by-id/e6c57fc4-4c5a-45d1-a8e7-125191e3015b.mp3

from dunya.

sertansenturk avatar sertansenturk commented on July 17, 2024

Can we handle the special character problem in a generic way? Or at least
slugify all the filenames so that we don't face this issue for the time
being?

El 15 nov. 2016 12:29 p. m., "Andres Ferraro" [email protected]
escribió:

Yes, the mp3 returns 404. I think this is because of spaces (or other
characters) in the file name:

http://dunya.compmusic.upf.edu/document/by-id/e6c57fc4-
4c5a-45d1-a8e7-125191e3015b.mp3


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#409 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEVI4ZpRGD0aMPewypj2haQ6UhAHcaBMks5q-ZeQgaJpZM4KyOAd
.

from dunya.

andrebola avatar andrebola commented on July 17, 2024

@alastair It seems this is handle fine by sendfile:

https://github.com/johnsensible/django-sendfile/blob/master/sendfile/backends/_internalredirect.py#L23:L24

If I check the output of that is:

/serve/incoming/Turkey-makam/audio/pesrev_sazsemaisi/03%20Hu%CC%88seyni%20Pes%CC%A7rev.mp3

Which is fine because if I access that url (after disabling the only local access option in nginx), then I get the file.

So, one option would be to update the version of nginx but there might be some problems with the configurations and I'm not 100% this is going to fix it. The other option as @sertansenturk said is to change the names of the files.

from dunya.

alastair avatar alastair commented on July 17, 2024

We upgraded nginx and it works

from dunya.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.