Avatar

Level 4

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

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic/how-to-upload-a-file-using-w...

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?

 

@DavidKangni  @Manoj_Kumar_ 

@Vipul_Raghav @Marcel_Szimonisz @Jonathon_wodnicki 

 

Thanks & Regards,

Greeshma