Thanks for the reply.
I have tried uploading a test image, it is 32x32 and it is only 1 kb.
Search found 72 matches
- Wed Aug 19, 2015 5:02 pm
- Forum: Support and Development
- Topic: Upload image with LuaSocket
- Replies: 4
- Views: 2607
- Wed Aug 19, 2015 4:27 pm
- Forum: Support and Development
- Topic: Upload image with LuaSocket
- Replies: 4
- Views: 2607
Upload image with LuaSocket
Hello everyone. I'm trying to upload an image using luaSocket. Here is my Lua code: function uploadFile(dir) local flen = love.filesystem.getSize(dir) print(flen,dir) local resp = {} local body,code,headers,status = http.request{ url = "my_url", method = "POST", headers = { [&quo...