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.
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.
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?
Thank you Michael kelly. I need the code to do this action when i click on the upload button. Is there an api which can store it to it on the site files path.
I don't believe that this location would be accessible via widget and I don't know of an API endpoint or configuration that would allow it. I've sent a note internally for someone else to check.
Site files do not expose an API (it's there for legacy support mostly). What are you using these files for? There may be a better location to place them (and one with an API).