TNRIS / api.tnris.org

Django RESTful API and PostgreSQL backend database management system for maintaining and serving Texas GIO's available data and content.

Home Page:https://api.tnris.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tnris_org documents auto download

adambreznicky opened this issue · comments

commented

opening the Documents table in the admin console for the tnris_org app automatically downloads a random MP3 on page load
weeeeiiiiiirrrrdddddddddddddd

commented

related to the TINY PREVIEW column on the list view

deleted the .mp3 which solved the issue this time. probably need to write in some preventative function to prevent .mp3s from being uploaded to the documents directory. i'll look into it.

after discussion, decided to remove tiny preview from the tnris_org /documents upload as i do not see it being as valuable as the tnris_org /images upload. the auto-download wasn't the only problem, there were other console errors dealing with the url structure of the tnris-org-static s3 bucket for some reason.

kept it simple and just remove the preview for /documents and keep it for /images.

closed via pr #65