[Plugin: Install via URL] Issue caused by forcing the file extension in the URL to be .ZIP
I really like the idea of this plugin. It’s brilliant. And it really saves me time!
A little problem I have with this plugin is that often times I need to install a plugin straight from Github. Well, the issue is that Github gives you a link to download a zip which look pretty much like this one:
Notice there is no .ZIP extension at the end. So when I enter this URL, I get an error that only .ZIP files are accepted. But the funny thing is, that this is a ZIP file! But I know, there is no easy way to figure that out from the URL.
I do have a suggestion though. You could take any URL that the user inputs and try to fetch only the headers. If it’s a ZIP file, there will be a MIME-Type header that is equal to application/zip or some similar variation (some more options for this MIME value). Then if the MIME type is of a different file type, let the user know that only ZIP files are allowed.
I would love to help with this issue and contribute!
Please let me know what you think of this issue.
After all the plugin is great and this is the only downside of it. By fixing this issue it can be perfect!
Thanks for reading!
- The topic ‘[Plugin: Install via URL] Issue caused by forcing the file extension in the URL to be .ZIP’ is closed to new replies.