Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPControlUpload Dynamic folderPath #71

Open
EGLimon opened this issue Oct 31, 2016 · 3 comments
Open

SPControlUpload Dynamic folderPath #71

EGLimon opened this issue Oct 31, 2016 · 3 comments

Comments

@EGLimon
Copy link

EGLimon commented Oct 31, 2016

Hi again,

thanks for the help with the other thread, now i have a diferent question, is there a way to change the folderPath after the initialisation? my problem is that i have my var folderPath=""; , then depending on some combobox i create a folder and update my var folderPath = SPsite + library+ FolderName, i have to initialize the control again after the var update?

Thanks in advance

@purtuga
Copy link
Owner

purtuga commented Nov 1, 2016

No, there is no way to do that today.
Your approach is correct: You have to destroy the current upload widget and re-instanciate a new one with the new folder.

@EGLimon
Copy link
Author

EGLimon commented Nov 3, 2016

Thanks for the help,

Sadly i have to find another way to use it since the control apparently needs an existing folder, i create the folder in the same code before the upload and for the time that is initialize the folder doesn't exist so i cant choose a file.

@purtuga
Copy link
Owner

purtuga commented Nov 3, 2016

Yes, it sounds like you need a custom solution...
Good luck.


Paul T

On Thu, Nov 3, 2016 at 11:58 AM, EGLimon [email protected] wrote:

Thanks for the help,

Sadly i have to find another way to use it since the control apparently
needs an existing folder, i create the folder in the same code before the
upload and for the time that is initialize the folder doesn't exist so i
cant choose a file.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABZ6tNX-VZxfdBA2_Np51b6SUY0_WNa1ks5q6gSMgaJpZM4KlZRb
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants