Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Retrieving file from POST
Hi all,
I'm trying to upload a small XML file to a suitelet so it can intepret then create records etc etc.
Unfortunately the XML file is not available online, it's downloaded and saved locally to the users machine.
Here's my HTML
<form method="POST" enctype="multipart/form-data" action="{SUITELET_URL_VIA_RESOLVEURL}"> Enter the File Name: <input type="file" name="xmlfile"> <input type="submit" value="GO!"> </form> Now on the Suitelet side:
var params = request.getAllParameters(); for(param in params) nlapiLogExecution('DEBUG',param,params[param]); 0