Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired.

UPDATED

Maybe this post can help http://salvatoredifaziosharepoint.blogspot.it/2012/11/how-to-set-destination-folder-in-oob.html

share|improve this question
    
Could you explain more clearly what you are trying to accomplish? –  RJ Cuthbertson Nov 14 '12 at 16:56
    
Comment to your statement about reflector: You could try DotPeek by JetBrains <3. I usually just use ReSharper, then I can right click or ctrl+b and get the code decompiled directly. –  eirikb Nov 14 '12 at 17:11
    
@rjcup3 I try to upload a file by the oob upload.aspx dialog and I would like to set in which folder upload the file –  Salvatore Di Fazio Nov 14 '12 at 18:18
    
@eirikb I will try it :) –  Salvatore Di Fazio Nov 14 '12 at 18:19
    
I did some reverse engineer to set the RootFolder information but doesn't work –  Salvatore Di Fazio Nov 15 '12 at 0:54
add comment

1 Answer 1

create an webpart with the upload control and set the path as you want, edit upload.aspx - hide the actual content and insert your webpart, otherwise a nasty workaround - let the upload operation go as it is presently, create an event receiver and move the file while adding the file on ItemAdding event

share|improve this answer
    
Ok it's the long way but I see the UploadPage code behind use a RootFolder variable to works. –  Salvatore Di Fazio Nov 15 '12 at 9:16
    
As far as I know the root folder attribute as completely different thing that you expected, it's mainly used as redirecturl i.e. after uploading the file the page will be redirected to some other page (generally the document library all items page), rootfolder is used for that purpose, anyway u hv not mentioned one important thing, are you using SP2007, SP2010 or SP2013? –  Diptarag Nov 15 '12 at 9:34
    
I made a solution. I will write a post about it. –  Salvatore Di Fazio Nov 15 '12 at 10:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.