02-22-2024 05:02 AM
I'm utilizing the endpoint http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/6e0c74d4-cd08-4fb6-9a8... in Alfresco to download files.
Subsequently, I've created a new download operation using http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/downloads. However, after monitoring the download status and completing the download process, I've observed that the downloaded .zip file contains all files in a generic format, rather than preserving their original formats.
My expectation is that the files within the downloaded zip should retain their original formats.
How can I ensure that the downloaded files maintain their original formats within the zip archive?
03-22-2024 06:02 AM
Issue Resolved: Ensuring File Extensions for Uploaded Files
Thanks for the reply!
I'm pleased to inform you that the issue has been successfully resolved. By ensuring that the filenames of uploaded files include their respective file extensions, we've ensured that when these files are downloaded as a zip archive, they retain their original file formats.
02-29-2024 03:52 AM
@Hariharan wrote:I'm utilizing the endpoint http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/nodes/6e0c74d4-cd08-4fb6-9a8... in Alfresco to download files.
Subsequently, I've created a new download operation using http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/downloads. However, after monitoring the download status and completing the download process, I've observed that the downloaded .zip file contains all files in a generic format, rather than preserving their original formats.
My expectation is that the files within the downloaded zip should retain their original formats.
How can I ensure that the downloaded files maintain their original formats within the zip archive?
Hello,
I understand that you have a problem with the downloaded files from Alfresco not preserving their original formats within the zip archive. This problem may be caused by the way Alfresco handles the file names and extensions when creating the zip archive. Alfresco uses the node ID as the file name and the MIME type as the file extension, which may not match the original file name and extension. Therefore, you may need to rename the files manually or use a script to restore their original formats after downloading them.
Alternatively, you can try to use a different method to download the files from Alfresco, such as:
I hope this helps you solve the problem with the downloaded files from Alfresco not preserving their original formats within the zip archive. If you have any other questions or feedback, please let me know. I’m always happy to help.
03-22-2024 06:02 AM
Issue Resolved: Ensuring File Extensions for Uploaded Files
Thanks for the reply!
I'm pleased to inform you that the issue has been successfully resolved. By ensuring that the filenames of uploaded files include their respective file extensions, we've ensured that when these files are downloaded as a zip archive, they retain their original file formats.
Explore our Alfresco products with the links below. Use labels to filter content by product module.