Ok… Who wants to work together to figure this issue out?
While Corona 'n staff can’t seem to provide any help or scripting on this (judging from the variety of posts I was able to find here), we should be able to come up with a solution here. I will be happy to share any my success and setup a code exchange page for it. 
So, from those various posts I did find, plus a couple lua reference sites, this seems to be the way to get a file loaded and sent to a web page…
-- get file, find length.
local path = system.pathForFile("test\_img.png" )
local fh = io.open(path)
local len = fh:seek( "end", 0 )
io.close(fh)
local url = "http://www.somesite.com/post\_img.php";
http = require("socket.http")
ltn12 = require("ltn12")
local response = {}
http.request{
url = url,
method = "POST",
headers = {
["Content-Type"] = "application/x-www-form-urlencoded",
["Content-Length"] = len -- this len was found above.
},
source = ltn12.source.file(io.open(path)),
sink = ltn12.sink.table(response)
}
-- show the response from page.
print (response[1]);
And then on the server side, I’ve simply got …
<?php <br>
foreach ($\_POST as $k =\> $v) {
$filename = "testImg" . time() . ".png";
$img\_file = fopen ($filename, "w");
fwrite ($img\_file, $v);
fclose ($img\_file);
echo "Received $filename";
}
So, it does send a file from the device to the php script… but the size of what I get is not the same as what I’m sending.
I’m *pretty sure* this is a simple issues of the encoding as whatever it’s sending is definitely the image file… but I’m seriously pounding my head against the wall trying to sort out how to correctly encode on the device and decode on the php side.
Any one with any thoughts? 
[import]uid: 13859 topic_id: 11644 reply_id: 311644[/import]