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

Media resources with the same name. #36

Closed
uo265363 opened this issue Apr 9, 2020 · 2 comments
Closed

Media resources with the same name. #36

uo265363 opened this issue Apr 9, 2020 · 2 comments

Comments

@uo265363
Copy link

uo265363 commented Apr 9, 2020

As we have now in the specification, the files in the resource folder are stored with the name of the file.
Then if we have 2 files with the same name it's going to give some problems when we try to fetch those files, so I think that we might change that. A solution could be to store resources with uuids (same as we do with routes and comments) and change the media property in route properties as well. The media property could be something like this
media: [ {"@id":da34fas749sa3h883j.mp3 , "name": "miAudio"}, {"@id":pt92as74234a3h5xb3j.mp4 , "name": "miOtroFichero"} ]

@PabloCanalSuarez
Copy link
Contributor

I think this is a really good idea, as it could be interesting to save the name property (or even some other optional properties like description, date, etc., that we could discuss).

Also, the uuid idea seems like something we have ignored in the media files until now. I believe it's really important to save these files also with an uuid rather than its name, just like we do with routes, as you've said.

@PabloCanalSuarez
Copy link
Contributor

Added to PR #21

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