Restrict upload of documents on MySite

Hi team,
I want to restrict all users on MySite Host to upload document in any Document Library on MySiteHost.
Thanks Ba$va

Hi,
According to your post, my understanding is that you wanted to restrict all users to upload files in the Document library.
I have made a simple code demo below, it would hide the upload button, you can paste the code in the mysite15.master page.
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("#js-newdocWOPI-Hero-WPQ2").click(function(){
setTimeout(hideUpload1,1);
$("span[class='ms-cui-tt-span']").click(function(){
setTimeout(hideUpload2,300);
function hideUpload1(){
$("#cojs-newdocWOPI-WPQ2_callout-actions").hide();
function hideUpload2(){
$("a[id='Ribbon.Documents.New.AddDocument-Large']").hide();
</script>
Note: You should change the ID and Class to fit your environment.
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support

Similar Messages

  • Uploading Excel Documents

    Hello! :)
    I'm working on a dashboard that requires me to "upload" or "attach" an excel document that users may choose to open or save. I've tried using a link and so far it worked well with .doc, .txt, and .pdf documents. When the link is clicked, the download dialog box opens and the document can be viewed without problem. Unfortunately, this did not work with an excel document.
    Does BIEE have a restriction to excel documents? Is there a specific way for me to do this? This may just be a simple problem. Hope someone could help.
    Thank you! :)

    Hello Kum,
    One approach is that immediately after uploading the initial file, put the loop at 'data_tab' and pass the last field which contains the file path and name and type of the file.
    For this purpose you've to use:
    1.) Variables for passing the vaule to FM (file name and type)
    2.) You need to use the string handing in order to get the type of file format from the file path from the 'data_tab' from 1st call
    Once you get the field containint the filename and path using string handling you can 1st measure the lenght of the full string using 'strlen' command and then check the string and check for the '.' and last 3 characters which is the format in general
    example:
    filename = 'C:\UPLOAD\UPLOAD1.TXT'.
    STRING = STRLEN( filename ).
    CAL2 = STRING - 4.
    TYPE1 = FILENAME+CAL2(STRING).
    IF FILENAME+CAL2(1) EQ '.'.
    CAL2 = CAL2 + 1.
    TYPE3 = FILENAME+CAL2(STRING).
    ENDIF.
    Pass the Filename and TYPE2 as filepath and type.
    One thing to remember there might be a performance problem since you said there are thousands of file for upload during one session.
    /Manik

  • Help Required - Upload Multiple Documents functionality sometimes disappears in SharePoint 2010

    Hi All,
    We have a web application created in SharePoint 2010 & there we were facing an issue of not able to Upload multiple documents. After doing search on google, we have found that
    pre-requisites for this functionality to be working properly are as follows:
    Client Integration needs to be enabled for the web application.
    The STSUpld.UploadCtl IE add-in must be enabled. (located in C:\Program Files (x86)\Microsoft Office\Office12)
    The 32 bit version of Internet Explorer. The 64 bit version does not support it and neither do other, non IE, browsers.
    Office 2003 or newer on the client.
    After meeting all the above requirements, We are now able to see the Upload Multiple Documents link but we are failing in below 2 scenarios:
    On some machines it is working fine & on some it is not.
    On some machines, this option is available for sometime & sometimes it disappears.
    If any one of you have experienced the same problem, then please help us with your valuable suggestions & possible solution for it.

    Hi Manish,
    We've just been experiencing your initial issue with Office 2007 clients not being able to use the multi-file upload functionality.  Sure enough....turning on presence information in Central Admin fixes the issue.  The strange thing is though that
    when presence is turned off, Office 2003 and 2010 clients still work fine and it's only 2007 clients that fail.  Also this issue appeared to only exist for us inside applications that have been upgraded from MOSS2007 to SP2010.  Any new applications
    of even new site collections within an upgraded application worked fine across all 3 Office versions.
    Coincidently, we're also experiencing the more recent issue you've come across with files not uploading after clicking OK in the ActiveX.  Nothing happens.  Office 2010 clients work fine but 2003 and 2007 clients just don't upload the selected
    files.  We've found a workaround which "fixes" the issue but brings it's own set of problems so it's not ideal.  Here's what we've done...
    1. Open IIS, and navigate to the web where you want to use multi-file upload
    2. Select Handler Mappings and Add Script Map
    3. Set Request Path - shtml.dll
    4. Set Executable - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\SHTML.dll
    5. Set the name to something meaningful - Multi File Upload
    6. Leave the Request Restrictions as default
    This should fix the issue with files not uploading but unfortunately it also prevents SharePoint Designer from accessing the site.  For the application where we desperately need multi-file upload we can manage without SPD access so it's not the end
    of the world but not ideal.  We've actually got an outstanding incident logged with Microsoft to resolve this issue but they've yet to find a solution for us.  We suggested to MS that we update authentication to Kerberos from NTLM and retry as we
    seem to be getting 401 errors in the call stack so thought that could be related.  We've not yet configured Kerberos so I'm not sure whether this is a solution or not.
    One other point worth mentioning is that SharePoint Designer 2010 (which is free) installs the latest version (14) of the Upload ActiveX and with this installed the uploads work as expected.  Also if you have Silverlight and SPD2010 installed then you
    get a Silverlight control to do the upload which also works fine.  Again, not ideal as rolling out SPD 2010 to affected clients isn't really a suitable solution.
    Sorry I can't be any more help.  Hopefully my findings might point you in the right direction.  If you do find a solution (other than the IIS handler mapping) then please re-post here,
    Good luck,
    Ben

  • Getting error while uploading a document in a library

    Hi,
    I'm getting a weird error while uploading the document in the library. And I don't get it all the times but most of the times.
    It reads:
    The file <library name>/<file name> has been modified by i:0#.<user-id> on <datetime stamp>
    How to resolve this ? I have referred many articles on this one, but none helped.
    Thanks for your response in advance.
    Regards

    Hi Prajk,
    Based on your description, I recommend to check if there are any ItemAdded event receiver or workflows which are triggered when an item is created to update the document properties in the library.
    If there is any ItemAdded event receiver on the library, I recommend to wait for ItemAdded to finish before the ListFieldIterator control residing on EditForm.aspx loads (It’s the ListFieldIterator which displays the Item’s fields ).
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    If there is any workflow on the library, I recommend to add a Pause for Duration step at the beginning of the workflows.
    If above cannot work, please check ULS log for detailed error message.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Uploading Multiple Documents To a List Item sharepoint 2010

    hi Guys ,
    Is there a way we can enable (out of the box )Uploading Multiple Documents To a List Item sharepoint 2010 ?
    cheers

    No, There is no OOB way to do the same you have to build a custom Page/Control OR customise OOB Form to attache multiple files and that will be through integration of ajax based control (multiple file uploader.)
    the other way to do the same is provision a custom field. we have done this for our many  clients.
    Hi, I also encountered the same problem, could u pls provide detailed information by a custom field?

  • Empty PopUp Dialog box while uploading a document in document library

    Hi ,
      I  want to upload a document to shared document folder .While adding new document to this library it opens browse dialog and then  after i selected some specific document  then select "ok" then after it appears an empty dialog
    which does not contains any thing except close and maximize button at the top corner.
    It appears in all sites/site collection through out the  web application
     Can any one help me ....
    thanks in advance ...
    Nag 

    hi
    Try uploading a single file of small size.
    Please let me know the outcome
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • I get two screens while uploading a document in a library

    Hi,
    I get two upload screens while uploading a document to a library. Take a look at the below screenshots. Can somebody please tell me how can I club these two to one.
    I need only one upload screen with all the metadata listed.
    Many thanks for your response.
    p.s. also please tell me an out of the box way to do this. Even scripting is okay.
    1.
    2.

    In the first screenshot I can see the link "Upload files using Windows Explorer instead". You can use that option to upload your files and the default values for metadata would be taken for those files. 
    From the second screenshot I can see there are custom columns in metadata because of which the second dialog is shown. If there are no custom columns in metadata then the second dialog will not appear.

  • When trying to upload a document or attach a document in an email Firefox gives me an error "Failed to load CTDFMRES.dll" and stops responding, I have no issues in any other browsers. And I am using Firefox 4, Fixes???

    When trying to upload a document or attach a document in an email Firefox gives me an error "Failed to load CTDFMRES.dll" and stops responding, I have no issues in any other browsers. And I am using Firefox 4, Fixes???

    You don't have to disable any addons or extentions!!!You guys are not going to believe this I figured out the problem it's really dumb...ok here goes the attachment uploader loads seperate so I got to thinking it's a popup so I went to options content and under block pop ups there is an option exceptions click on that and in the box type firefox.com and hit allow pow its fixed!!!!! :-)

  • Getting Error While Uploading Clause Document in SAP Sourcing 9.0

    Hi,
    --------------------system description--------------
    SAP Sourcing 9.0
    SAP NW7.31 AS JAVA
    IBM DB2 9.7
    I am getting error while executing clause document.
    ----------------------Error Description---------------
    Login with buyer link into the system-> it has all authorizations
    then Goto -> Contract Management -> Clause Library -> Clause list -> Click on New button -> Click on Add button -> Browse Document
    it is showing POPUP with Error that "There is a problem with the Contract Generation web service Contact your system administrator"
    Thanks and Regards,
    Murtaza Najmi

    Hi Gary,
    it is standalone system i have, everything i have installed on one server.
    i have already checked with restarting IIS server, and i can see word service while running url in contractgen.serviceurl, word service is running fine on browser but when i upload the document a popup window comes with error as i have shown above in my query
    Thanks once again Gary for replying
    Thanks and Regards,
    Murtaza Najmi

  • Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

    hi ,
    i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
    http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
    It was working for sharepoint hosted app.
     This complete code is written within content edito web part.
    It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
    var scriptbase = "http://servername" + "/_layouts/15/";
                console.log(' File size:' + bytes.length);
                $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
    "http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
    Now if i hard code the url as i did above my code gets break here while come to below line
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
    I am getting error when i used below code:
    var scriptbase = "http://servername" + "/_layouts/15/";
     $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                    var createitem = new SP.RequestExecutor("http://servername");
                    createitem.executeAsync({
                        url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
    + fileName + "')",
                        method: "POST",
                        binaryStringRequestBody: true,
                        body: binary,
                        success: fsucc,
                        error: ferr,
                        state: "Update"
                    function fsucc(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(data + ' uploaded successfully');
                        deferred.resolve(data);
                    function ferr(data) {
                        //alert( data.statusText + "\n\n" + data.responseText);
                        console.log(fileName + "not uploaded error");
                        deferred.reject(data);
    Please hekp in this case. This complete code is written within content edito web part. 
    Regards:
    Sanjay Joshi

    Hi,
    According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
    As you have said, you have used the hard code url in your code.
    How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
    I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
    You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
    Thanks,
    Jason
    Jason Guo
    TechNet Community Support

  • "Function code cannot be selected" error while uploading a document.

    Hi,
    When we try to upload a document into SAP the user is getting the error "Function code cannot be selected". Detailed error is given below. Only one user is facing this error in PRD. For all other users it is working fine. We replicated the same issue in testing systems and it is working fine there with the same user's id.
    The detailed error is,
    No batch input data for screen SAPLF040 0300
    Message no. 00344
    Diagnosis
    The transaction sent a screen that was not expected in the batch input session and which therefore could not be supplied with data.
    Possible reasons:
    1. The batch input session was created incorrectly. The sequence of screens was recordly incorrectly.
    2. The transaction behaves differently in background processing in a batch work process than when running in dialog (SY-BATCH is queried and changes the screen sequence).
    3. The transaction has undergone user-specific Customizing and therefore certain screens may be skipped or processed differently, according to the current user. If the person who created a batch input session is not the same as the person now processing it, this problem may occur frequently.
    System Response
    None.
    Procedure
    For 1: Either re-create the session or process it in expert mode. Correct the batch input program.
    For 2. It is very difficult to analyze this problem, particularly in the case that the screen sequence or the display-only options of fields differ according to whether the transaction is being processed in the background or as an online dialog. It could also be that this kind of transaction cannot run with batch input.
    For 3: Have the creator of the session process it. If no error occurs now, then this is a program with user-specific Customizing.

    Hi Amar,
    I am facing the same issue while processing Vendor master inbound idocs, Few Idocs gone in error with error message "Function code cannot be selected".
    Could you please suggest any solution found for the same.
    Thanks in advance
    Shivam

  • Getting Runtime error while uploading Business document (in .DOC format) to project in Solution Manger under Gen. Documentation tab (SOLAR01) .

    Hi there,
    Below are the steps that I followed to upload the business doc.
    S1: Uploading the business process related document file (.DOC) to the business process step under Gen. Documentation tab.
    S2: Providing the title, docuemtnatation type and released status for uploading the new document.
    S3:  Selecting the .DOC file to be uploaded. As soon as I try to upload the document I am getting the run time error as shown in the attachment. It is showing the short description that function Module "IW_C_PH_CLASS_VSP_GET" not found. I followed the steps to resolve this issue mentioned in the description. But still I am getting the same dump again and again. Any help will be highly apperitiated.
    Thanks and Regards,
    Rutvik Upadhyay

    Hi Rutvik,
    Please check and implement notes:
    1823986 - SYB: Improved Data Load ("ins_by_bulk")
    1605169 - SYB: SAP BW7.02 Correction Collection
    Thanks
    Vikram

  • How to Restrict save billing document if sale rate is zero

    Dear Expert,
    Please tell me how to restrict save billing document if sale rate is zero.
    Regards
    BK GAIKWAD

    Sir,
    Many times in sales order old price has been available, (which is closed through VK12) when we have update the pricing in billing document it has been removed but billing document has been saved, we have restrict it. Please help
    Regards
    BK GAIKWAD

  • How do i upload a document from my MacBook Pro to iCloud?

    How do i upload a document from my MacBook Pro to iCloud?

    To get Pages Documents (and Word) to iCloud from your computer, log into iCloud.com and go to the iWork tab. Then copy that file to the page. Works with Numbers and, I think, Excel files too. But you can't copy any type of file you want to iCloud, it has to be one of the supported formats. Also, you need to have Pages/Numbers app on a device to allow syncing from iCloud to the device and to copy from Mac to iCloud.

  • How to create a workflow composite with the ability to upload a document in

    Hi,
    Is there any way to attach/upload a document while creating or modifying a user.
    I have a requirement where user will create a document(.xls/.csv/.doc) with his details and he needs to upload that document while updating the profile. If he is creating the profile then this document has to be forwarded to his manager. By validating the document manger will approve the request.
    Any help on this is greatly appreciated.
    Regards,
    mahantesh

    Use a JFrame and paint on the content pane. Or a Frame with a Canvas (who the heck still uses AWT?).
    They probably don't do anything because painting a button is not enough. It actually needs to be a button. Or Menu.

Maybe you are looking for