You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
item_link python:item_type in view.use_view_action and item_url+'/view' or item_url;
If your content doesn't have the plone.namefromfilename behavior (or if you rename it), you can end up with :
content title : "My file"
generated (or renamed) content id : "my-file"
uploaded filename : "foo.pdf"
There is a problem in that case if File is not in plone.types_use_view_action_in_listings : the listing macro will then propose a download url for the file leading to the download of "my-file" instead of "foo.pdf", thus with a wrong filename and without extension.
Shouldn't we use item_url + '/@@download/file' url in listings to solve that problem ?
The text was updated successfully, but these errors were encountered:
Here, we check if files should be accessed by their
/view
(no problem there) or downloaded directly from the listing macro :plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt
Line 45 in 6e1db0c
If your content doesn't have the
plone.namefromfilename
behavior (or if you rename it), you can end up with :There is a problem in that case if
File
is not inplone.types_use_view_action_in_listings
: the listing macro will then propose a download url for the file leading to the download of "my-file" instead of "foo.pdf", thus with a wrong filename and without extension.Shouldn't we use
item_url + '/@@download/file'
url in listings to solve that problem ?The text was updated successfully, but these errors were encountered: