How to upload a file from web application in Adobe Campaign? | Community
Skip to main content
joydeep_kundu
Level 2
August 8, 2015
Solved

How to upload a file from web application in Adobe Campaign?

  • August 8, 2015
  • 3 replies
  • 5222 views

Hi,

In Adobe  Campaign Webpage I have a file upload control. But when I am uploading the file it is endlessly uploading and after some time giving an error message. Please let me how to configure the file upload process in this particular senario?


Thanks & Regards,

Joydeep

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Marcel_Szimonisz

Hello joydeep.kundu​,

See this answer. hope it helps

How to Upload a file using Webapp Adobe Campaign?

Marcel

3 replies

Level 2
May 2, 2018

Hi Joydeep is it Resolved? I am looking for similar thing

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
June 4, 2018

Hello joydeep.kundu​,

See this answer. hope it helps

How to Upload a file using Webapp Adobe Campaign?

Marcel

Level 2
September 27, 2019

1.

choose context variable (eg ctx.vars.file) to save your file from form

2-3 step:

See any file res  xml to know what to save

ctx.vars.file -->has e.g @md5, @originalName. 

//create all fields you want to save 

//create xml  var fileResXml = <fileRes contentType={contentType} 

internalName={intName}

label={originalName} md5={md5Var}

name={destFileName} originalName={originalName} 

xtkschema="xtk:fileRes"><folder id={folderId}/></fileRes>;

//create file res obj  var fileResObj = xtk.fileRes.create(fileResXml);

//publish  fileResobj.PublishIfNeeded();  //save it to db  fileResobj.save(); 

var fileResId = *query resource id by unique internal name*; 

///save resource id to linked table? 

fileResobj.save(); 

fileRfileResobj.save();esobj.save();