Unable to upload image to public resources folder
Hi,
I am trying to upload image to public resources folder using a web page and while uploading the file I am getting this error "QUE-370030 You do not have the rights needed on folder of identifier 347358852 (documents of type 'File resource (fileRes)') to complete the operation. (iRc=-53) [nms:webApp Error] QUE-370030 You do not have the rights needed on folder of identifier 347358852 (documents of type 'File resource (fileRes)') to complete the operation."
For my operator account I have all the named rights assigned. But still this issue is coming.
For creating the web app for uploading image I have followed the steps mentioned in the below link
Below given is the code which I used in my JS activity after Page v5 activity.
var fileResXml = <fileRes contentType="Image"
internalName="sposnorNewImage" label="sposnor New Image" md5="b2448e9c52ca8f01999e5da510720ef1"
name="sposnorNewImage" originalName="SponsorNewReq"
xtkschema="xtk:fileRes"><folder id="347358852"/></fileRes>;
//create file res obj
var fileResObj = xtk.fileRes.create(fileResXml);
//publish
fileResObj.PublishIfNeeded();
//save it to db
fileResObj.save();
Could someone please help in resolving this?
@vraghav @marcel_szimonisz @jonathon_wodnicki
Thanks & Regards,
Greeshma