Hello and thank you for your question.
I’m not sure exactly what aspect your question refers to. Do you simply want to integrate the ZIP file as an external file? Or do you want to look inside it under Media > Add External Files > ZIP in order to extract something from it?
If it’s the former, then you should have received this message:
Given URL response with the disallowed mime-type application/zip.
This means that ZIP files are not allowed in the settings. You can change this by going to Settings > External files in Media Library > General Settings and adding ZIP files to the list of allowed file types.
However, if it is the latter, then such access is currently only possible from local hosting. Above the input field for ZIP files, it also says:
View post on imgur.com
This means that access via HTTP is currently not possible here.
I am currently working on the next version and think it will be possible to enable this in the future. I’ll add it to my list, but I can’t promise anything. The next version will probably be released in August or September (after the busy holiday season).
-
This reply was modified 11 months ago by
threadi.
Hi, thank you for your response. But unfortunately, my situation is a little bit different.
Thanks for the description, I was able to reproduce it. The reason here is the interference of the ZIP service, which should not be active at all for external URLs.
I currently see 2 possible solutions:
a) Use the following PHP code to deactivate the ZIP service:
add_filter( 'eml_services_support', function( $list ) {
unset($list[6]);
return $list;
});
You would have to insert this in the functions.php of a child theme or via a code snippet plugin.
b) Wait until the next update of the plugin. I would test just such a case there and make adjustments so that it no longer happens there. However, as written above, the release is not expected in the next few weeks.
It works perfectly now, thank you!
Oh, but unfortunately, I get a different error when I try to add this URL: https://www.peak-system.com/quick/DLP2262
Temp file could not be created because of the following error: {"errors":{"http_404":["Found"]},"error_data":{"http_404":{"code":302,"body":""}}}
No files found under given URL.
Nice that it worked out 🙂
The message comes from WordPress itself. The URL you mentioned is just a redirect to the actual URL. WordPress obviously can’t handle the redirect, hence the message. I would recommend using the actual URL.
If your questions have been answered, you are welcome to set the topic to solved.