While uploading a an HTML file, ------WebKitFormBoundarywPhRMi5J1WMEAybu data------WebKitFormBoundarywPhRMi5J1WMEAybu-- get added before tag, causing to display the above when we open the HTML page.
i am using LWP with perl to uplaod the file:
my $req = POST(
$url,
Authorization => 'Basic ' . encode_base64('admin' . ':' . '*****')
+,
Content_Type => 'multipart/form-data',
'Content' => { 'file_to_upload' => ["$location"] }
);
Can someone explain how to get rid of WebKitFormBoundary in uploaded file ?