Jump to content

How to restrict to url uploads only?


Black Tiger

Recommended Posts

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

spacer.png

Link to comment
Share on other sites

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

spacer.png

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

L90lclm.png

8Y4vUxV.png

Uploading a new verison, user can edit again the file, remove the URL and leave only the uploaded file.

Link to comment
Share on other sites

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

L90lclm.png

8Y4vUxV.png

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...