Closed vladislav-vasilyev closed 5 years ago
The file name should be a link to the file. Clicking on it will either open it or download it depending on the file type and your browser settings. If that doesn't work, you may want to hover over the file name to see if the link is pointing to the correct location where your file is stored.
@autoboxer How can I do it? Now I have this configuration for the file field:
var Types = keystone.Field.Types;
var storage = new keystone.Storage({
adapter: keystone.Storage.Adapters.FS,
fs: {
path: 'uploads',
},
});
Enquiry.add({
...
attachedFile: {
type: Types.File,
storage: storage,
initial: true,
},
...
});
...
@vladislav-vasilyev use cloudinary service for photo uploading
@abhijithvijayan But what if I need to upload .doc, .docx, .pdf, .ppt, .pptx files?
@vladislav-vasilyev Take a look at this issue
I updated keystone to 4.0.0 version from 4.0.0-beta.5 and now it works as expected
I'm on keystone 4.2.1 and i still have this problem, i cannot download the file from admin ui
![]()
I'm on keystone 4.2.1 and i still have this problem, i cannot download the file from admin ui
HI @NeoTheSecond - did you manage to solve this? Also needing to allow admins to download files.
Hi everybody. How can I download uploaded files from keystone admin UI? I see the only filename with extension string in the list item field but I couldn't download it (this field has the File type). Is it possible to add button/clickable link to download it?