Page 1 of 1

Upload directory is empty OnComplete Event

PostPosted: 02 Jul 2019 13:21
by stephane
Hi,
I use iwcgjquery suite 4.1.0.196 with Intraweb XV
if i set an upload directory (with the property 'UploadPath') outside the SA executable directory then when the OnComplete event is fired there is no file uploaded inside ! (But It works when i set upload directory as a subdirectory of the SA executable directory). Why ?
Best regards

Re: Upload directory is empty OnComplete Event

PostPosted: 02 Jul 2019 14:11
by Alexander Bulei
Hi stephane,

Because the full path is:

Code: Select all
GServerController.ContentPath + UploadPath


Best Regards.

Re: Upload directory is empty OnComplete Event

PostPosted: 02 Jul 2019 14:43
by stephane
I don't understand your answer because GServerController.ContentPath + UploadPath means for me that upload directory must be inside wwwroot ...

the default IWServerController.ContentPath is "wwwroot" directory which is inside the WebApplication.ApplicationPath (with my SA executable)
and myIWCGJQFileUpload.JQFileUploadOptions.UploadPath := WebApplication.ApplicationPath + 'upload\';

so the "upload" directory is not inside the "wwwroot" but beside it and the chosen file is correctly uploaded !

Best regards

Re: Upload directory is empty OnComplete Event

PostPosted: 02 Jul 2019 15:06
by Alexander Bulei
Hi,

I don't understand your answer


Which part? The upload path must be inside the application and relative...

Re: Upload directory is empty OnComplete Event

PostPosted: 05 Jul 2019 10:38
by stephane
Thanks Alexander !
Is there no solution for my other question "how to get new cellvalue entered on clicking button" in this forum ?
Have a nice day