Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8476525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:12:12+00:00 2026-06-10T18:12:12+00:00

How can I add a file/data upload picker on my form in Alfresco Share?

  • 0

How can I add a file/data upload picker on my form in Alfresco Share? I need to click on my button then the file picker should appear. Can anybody help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:12:13+00:00Added an answer on June 10, 2026 at 6:12 pm

    Check out the Manage Users console code defined in users.js, which features the ability to upload a CSV file containing user details.

    First you need to define a HTML button control and then add some client-side script to bind that to an upload control

    Define the button in your component’s HTML template

    <span class="yui-button yui-push-button" id="${args.htmlid?html}-uploadusers-button">
       <span class="first-child"><button>${msg("button.uploaduser")}</button></span>
    </span>
    

    Then create the YUI button in your client-side code (e.g. in your onReady() function)

    var uploadUsersButton = Alfresco.util.createYUIButton(this, "uploadusers-button", this.onUploadUsersClick);
    

    Then define the button click handler as a new function of your component’s prototype – following example is from function ConsoleUsers_onUploadUsersClick() in users.js which you will need to modify as per your needs

    onUploadUsersClick: function onUploadUsersClick()
    {
       // Force the use of the HTML (rather than Flash) uploader because there are issues with the
       // Flash uploader in these circumstances when Sharepoint is being used. The Flash uploader
       // picks up the wrong JSESSIONID cookie which causes the upload to fail.
       if (!this.fileUpload)
       {
          this.fileUpload = Alfresco.util.ComponentManager.findFirst("Alfresco.HtmlUpload") 
       }
    
       // Show uploader for single file select - override the upload URL to use appropriate upload service
       var uploadConfig =
       {
          uploadURL: "api/people/upload.html",
          mode: this.fileUpload.MODE_SINGLE_UPLOAD,
          onFileUploadComplete:
          {
             fn: this.onUsersUploadComplete,
             scope: this
          }
       };
    
       this.fileUpload.show(uploadConfig);
    
       // Make sure the "use Flash" tip is hidden just in case Flash is enabled...
       var singleUploadTip = Dom.get(this.fileUpload.id + "-singleUploadTip-span");
       Dom.addClass(singleUploadTip, "hidden");
       Event.preventDefault(e);
    }
    

    Note the use of the uploadURL parameter in the config object. You should set this to the URL of a custom repository web script you create that knows how to handle the contents of the uploaded file.

    The user upload example also defines a method onUsersUploadComplete() that you will see referenced. It is up to you to implement your own component method here to take appropriate action such as updating the UI based on the results of the upload.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can upload a file and analyse. splunk > Search > Add more data
I have a page where the user can dynamically add file upload boxes. Adding
I have a pretty standard upload form - user picks a file, then hits
I'm trying to add a file upload function to a contact form, but it
I have a file upload form. When submitted, the form posts the data to
I have a form where a user can upload a file to the sites
i want to make an app which can add the file properties of a
How can I add a css file to only a child page while using
Sorry for my English. How I can add comment to Jpeg file to COM-marker
How can I add line breaks in my language file for use in MFMailComposeViewController

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.