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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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