Black Tiger Posted July 24, 2019 Posted July 24, 2019 For the IPS Download addon, one can upload files and "upload" external url's (link to them in fact). Is there a way to restrict uploads to url's only? So they can't upload files to the file system but only upload url's?
Adriano Faria Posted July 29, 2019 Posted July 29, 2019 On 7/24/2019 at 7:42 PM, Black Tiger said: Is there a way to restrict uploads to url's only? So they can't upload files to the file system but only upload url's? No.
Black Tiger Posted July 29, 2019 Author Posted July 29, 2019 That's a pity. Would be nice if there was one.
TheJackal84 Posted July 29, 2019 Posted July 29, 2019 6 minutes ago, Black Tiger said: That's a pity. Would be nice if there was one. add this to your custom.css and it will hide the progress bar and upload form div#elDownloadsSubmit_uploader.ipsClear { display: none; } div#elDownloadsSubmit_progress.ipsClear { display: none; } leaving only the add url button
Adriano Faria Posted July 29, 2019 Posted July 29, 2019 6 minutes ago, TheJackal84 said: add this to your custom.css and it will hide the progress bar and upload form div#elDownloadsSubmit_uploader.ipsClear { display: none; } div#elDownloadsSubmit_progress.ipsClear { display: none; } leaving only the add url button You still need a plugin, otherwise the user can upload a new version. Even if you hide via CSS the warning, it's accessible via URL:: ...index.php?/files/file/2-fgsdfs/&do=newVersion Uploading a new verison, user can edit again the file, remove the URL and leave only the uploaded file.
TheJackal84 Posted July 29, 2019 Posted July 29, 2019 1 minute ago, Adriano Faria said: You still need a plugin, otherwise the user can upload a new version. Even if you hide via CSS the warning, it's accessible via URL:: ...index.php?/files/file/2-fgsdfs/&do=newVersion Uploading a new verison, user can edit again the file, remove the URL and leave only the uploaded file. could probably hide that setting via css too?
Adriano Faria Posted July 29, 2019 Posted July 29, 2019 4 minutes ago, TheJackal84 said: could probably hide that setting via css too? 4 minutes ago, TheJackal84 said: Even if you hide via CSS the warning, it's accessible via URL:: ...index.php?/files/file/2-fgsdfs&do=newVersion You can probably hide the upload from that screen too. Anyway, I really don't like to rely in templates/CSS edits since this is tied to the theme. If you have more than one and forget to make it all themes, you failed.
Black Tiger Posted July 29, 2019 Author Posted July 29, 2019 Thank you both, but I rather keep custom.css to a minimum if possible as it's not a really important thing for me. Sometimes things can get passed such hide option indeed. At this moment I used the setting of maximum file size to 1 kb and used the "approve" option. Works nicely too as a workaround.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.