Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 558

Image Upload Feature on Marketing Cloud Landing Page Not Storing in Data Extension

$
0
0

I'm working on a project in Salesforce Marketing Cloud and need to create a landing page with an image upload feature. I have already set up a Data Extension named "ImageUploads" with the following fields: ImageBase64, CreatedDate, Id (primary key), and PostText.

I've written a Cloud Page script to handle the image upload, but the uploaded image is not being stored in the Data Extension as expected. Here is a simplified version of my script:

%%[    var @ImageBase64, @PostText, @CreatedDate, @Id    set @ImageBase64 = RequestParameter("ImageBase64")    set @PostText = RequestParameter("PostText")    set @CreatedDate = Now()    set @Id = GUID()        if not empty(@ImageBase64) then        InsertData("ImageUploads", "Id", @Id, "ImageBase64", @ImageBase64, "PostText", @PostText, "CreatedDate", @CreatedDate)    endif]%%

Despite this, the data is not being inserted into the Data Extension. What might be causing this issue, and how can I ensure that the uploaded image is stored correctly?

Thank you for your help!


Viewing all articles
Browse latest Browse all 558

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>