Upload files to site root folder from widget code.

Hi,

I am trying to upload files to site root folder, Which are visible on Administration>site>files  in the control panel.

I tried using cfs jquery glow selector. How can i save it permanently on site root folder.

Parents
  • Satish,

    Thank you for posting this. As a note, uploading via this built-in method won't put the file at the site root. It will only put the file in the root directory of the CFS that this functionality points to which should be fileStorageLocation/communityserver-components-sitefiles/ There isn't a built-in method to upload files directly into the site root or web root.

    In the example you provided there's one additional step. Once you've selected a file like you have above you need to click the upload button to finalize the upload request.



    If you've done that already, did you encounter an exception or error that you can pass along?

Reply
  • Satish,

    Thank you for posting this. As a note, uploading via this built-in method won't put the file at the site root. It will only put the file in the root directory of the CFS that this functionality points to which should be fileStorageLocation/communityserver-components-sitefiles/ There isn't a built-in method to upload files directly into the site root or web root.

    In the example you provided there's one additional step. Once you've selected a file like you have above you need to click the upload button to finalize the upload request.



    If you've done that already, did you encounter an exception or error that you can pass along?

Children