Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug su mimetype degli enclosure #10

Open
jenkin opened this issue Aug 9, 2017 · 2 comments
Open

Bug su mimetype degli enclosure #10

jenkin opened this issue Aug 9, 2017 · 2 comments

Comments

@jenkin
Copy link

jenkin commented Aug 9, 2017

Nel codice il mimetype degli enclosure è hard coded e fissato ad application/pdf. Dall'url dell'enclosure non è però possibile risalire all'estensione del file, che quindi in fase di download viene ricavata dal mimetype.

Molti file allegati agli atti però non sono affatto pdf! Quindi vengono salvati con l'estensione sbagliata e risultano illeggibili.

Bug grave, risolvibile estraendo anche il nome del file (testo nel tag a), da cui si ricava l'estensione e infine il mimetype corretto. Tutto con il comodo modulo mimetypes.

Nota: bug corretto nello script in produzione sul ondata.

@ebergam
Copy link
Owner

ebergam commented Aug 9, 2017

@jenkin ok, grazie! Se fai una pull correggo, altrimenti quando ho tempo do un occhio sul server poi rimetto a posto questo

@jenkin
Copy link
Author

jenkin commented Aug 9, 2017

Non posso fare pull qui, non ho le tue credenziali... :) Non c'è fretta, più guardatelo con calma...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants