Link to home
Start Free TrialLog in
Avatar of Fredd
Fredd

asked on

Doc library upload button -

I have a page and want to include a link ( or button)  to upload a document to a particular library.
I could use https://.../sitename/doclibname/_layouts/15/upload.aspx?ListID={GUID HERE} - that technique will allow you to upload the document, set its metadata (column values) - but then brings up the document in the brower (or launches a client application).
Even if you add '?Source=<whatever> " it doesn't work.
See http://intapoint.com/2013/05/add-an-add-document-link-to-a-page-in-sharepoint-2010/ 
That solution doesn't work evidently on 2013.  

How do I add a simple upload button to a screen to upload to a particular library (root folder can be the top level).

I stubble with Javascript so the more complete you can make the answer the better.
Avatar of HainKurt
HainKurt
Flag of Canada image

why that solution is not working?
what is different?
Avatar of Fredd
Fredd

ASKER

I'm not sure - I get 'something went wrong' and that's all when I put in that solution.
also there is another strange behavior.
When I put that solution and then save the page with the link -
the link actually resolves to https://.../sitename/sitepages; and then the real link I want from the script.
I'm not sure why it is pulling in as a prefix the document library name which stores the page.
ASKER CERTIFIED SOLUTION
Avatar of Fredd
Fredd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Fredd

ASKER

See comment I provided.