<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Disable/remove/hide File Upload options from Documents and Media (7.3v)?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121404359" />
  <subtitle>Disable/remove/hide File Upload options from Documents and Media (7.3v)?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121404359</id>
  <updated>2026-04-25T12:01:36Z</updated>
  <dc:date>2026-04-25T12:01:36Z</dc:date>
  <entry>
    <title>RE: Disable/remove/hide File Upload options from Documents and Media (7.3v)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121411581" />
    <author>
      <name>Adam Steiner</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121411581</id>
    <updated>2022-04-28T16:42:34Z</updated>
    <published>2022-04-28T16:34:56Z</published>
    <summary type="html">&lt;p&gt;We had a similar requirement, as part of an upgrade from 6.2 to 7.3,
  and we had to keep certain customizations in place (since developed
  components relied on those design decisions).&lt;/p&gt;
&lt;p&gt;The DefaultDLPortletToolbarContributor class contributes the
  &amp;quot;Multiple File Upload&amp;quot; option.&lt;/p&gt;
&lt;p&gt;The way we customized that menu was by extending that class, then
  using OSGI methods to disable the original programmically when our
  Service was activated (and enabled when ours was deactivated as well).&lt;/p&gt;
&lt;p&gt;This post
  (https://liferay.dev/ask/questions/development/disable-osgi-component-and-use-custom-one-1)
  was very helpful (particularly the solutions in the comments), as it
  described overriding a Service that's used the same way
  DLPortletToolbarContributors are.&lt;/p&gt;
&lt;p&gt;Also, since DefaultDLPortletToolbarContributor is not exported from
  the document-library-web bundle, we used the technique in 
  https://liferay.dev/blogs/-/blogs/fixing-module-package-access-modifiers
  to make that class visible to our module, and thus easier to extend.&lt;/p&gt;
&lt;p&gt;Personally, I didn't like having to alter this Menu, but as I said,
  this was part of an Upgrade where we had to adhere to previous design
  decisions, and to the customer's expectations.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;</summary>
    <dc:creator>Adam Steiner</dc:creator>
    <dc:date>2022-04-28T16:34:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Disable/remove/hide File Upload options from Documents and Media (7.3v)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121405063" />
    <author>
      <name>Chanakya P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121405063</id>
    <updated>2023-01-24T06:25:47Z</updated>
    <published>2022-04-22T13:59:29Z</published>
    <summary type="html">&lt;p&gt;I want to hide only file upload but user can see other
  features(options) like multiple documents, repository and other
  document types in plus icon. &lt;/p&gt;
&lt;p&gt;Just i want to hide that only one option file upload in plus icon menu.&lt;/p&gt;
&lt;p&gt;In Define permission , we don’t have specific action to that single
  file upload permission. &lt;/p&gt;
&lt;p&gt;Any possibility if we override any service?&lt;/p&gt;</summary>
    <dc:creator>Chanakya P</dc:creator>
    <dc:date>2022-04-22T13:59:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: Disable/remove/hide File Upload options from Documents and Media (7.3v)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404866" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404866</id>
    <updated>2022-04-22T08:38:20Z</updated>
    <published>2022-04-22T08:38:19Z</published>
    <summary type="html">&lt;p&gt;Control Panel / Site Administration is the place where the full
  administrative interface lives. You shouldn't modify anything there.
  If you have a particular user, whom you don't want to give upload
  permissions, just provide the appropriate permissions/roles for that
  user and the option will not be shown. You might want to revoke access
  for either individual operations, or for the whole Site Administration
  interface - your choice.&lt;br /&gt;
  &lt;br /&gt; ​​​​​​​In general, Liferay's administrative UI shows you
  whatever you have explicit access &amp;amp; permissions to. Look at a
  role's &amp;quot;Define Permissions&amp;quot; screen and the roles that the
  user in question has.&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2022-04-22T08:38:19Z</dc:date>
  </entry>
  <entry>
    <title>Disable/remove/hide File Upload options from Documents and Media (7.3v)?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404358" />
    <author>
      <name>Chanakya P</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121404358</id>
    <updated>2023-01-24T06:25:47Z</updated>
    <published>2022-04-22T04:50:57Z</published>
    <summary type="html">&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;I want to disable/remove/hide the File Upload option from Documents
  and Media in control panel.&lt;/p&gt;
&lt;p&gt;How to implement this in 7.3 version?&lt;/p&gt;
&lt;p&gt;Please provide the suggessions.&lt;/p&gt;
&lt;p&gt;Thank you in Advance.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;
  &lt;img alt="" src="/documents/14/0/Documents_Media_Upload.png/5794f928-3189-8768-fb4f-0f175b60c3eb?t=1650603034520&amp;amp;imagePreview=1" /&gt;
  &lt;br /&gt;  &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Chanakya P</dc:creator>
    <dc:date>2022-04-22T04:50:57Z</dc:date>
  </entry>
</feed>
