3 ms·
I believe you can filter by mimetypes.
by gobengo 14y ago
I believe you can filter by mimetypes.
- liyanchang 14y agoCorrect. We currently do mimetype verification. People have been asking for extensions as well, so that's on the roadmap as well.
- tlrobinson 14y agoFile type and size limits are specified in the JavaScript API, no? Is there any way to enforce it server-side, so people can't abuse it?
- liyanchang 14y agoWe enforce both the filetype and size limits on the server side. We have some hostname verification and we also also adding in secret keys to sign requests so we can be even more sure. We also have some checks that look for abnormal upload patterns that have found a couple oddities and will get better with time.
- tlrobinson 14y agoBut where can I specify filetype and size limits in my control panel? There's nothing stopping abusers from changing those parameters on the client.
- liyanchang 14y agoThat's a good idea. We had been working under the assumption that you would want to change limits often, but I can see how a per-apikey cap would prevent gross abuse.