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
Provide file-extension or complete filename in file content endpoint #958
Comments
@Skylsmoi Which information do you think is better ? complete filename or just file_extension. |
There is also some trouble with ui for both frontend and webdav. 1.File extension is required also in workspace content endpoint to be able to distinct 2 File with same label but different file extension in frontend. Should we show another tab " file_extension" in frontend or having a specific behaviour for some type of file ? 2. Solution proposed to this issue:
|
After some discussion with @Skylsmoi and Luc, it's seems more convenient to use both strategy for conflict issue:
This means also:
For UI issue, easy solution is to show always file extension, unless tracim specific file extension is used. (need an endpoint to make frontend know which are tracim_specific file extension). |
Could you give some examples, please? Just to be sure to understand correctly |
notation: filename [type] "label"
|
Some example of behaviour, as i see it with modification: creating a new htmldoc named "test" creating another htmldoc named "test creating another htmldoc named "test" creating a thread named "test" uploading a file with filename "test.html" Weird case : uploading a file with filename "test.htmldoc.html" not sure about behaviour for this one : |
note : page content type does not exist. its html-document. So the filename should be for example :
|
Personally i prefer either :
|
tracim/tracim_v2#90 use actually both .document.html and .thread.html . |
So... I resume the strategy to implement:
For now, specific extensions will be:
|
Can I test something? |
Verified. |
Describe the bug
Frontend is unable to get file complete filename with extension
Expected behavior
file content endpoint should return file extension or complete filename in endpoint.
The text was updated successfully, but these errors were encountered: