ejabberd - Comments for "upload image to ejabberd by http Post" https://www.ejabberd.im/forum/25390/upload-image-ejabberd-http-post en It seems I can get them https://www.ejabberd.im/forum/25390/upload-image-ejabberd-http-post#comment-67051 <p>It seems I can get them through the process/2 function, second parameter is #request. The ugly thing is I had to strip multipart data stuff inserted before the real file content, something like:</p> <blockquote><p> Data=--------------------------e3ab5b4e2ee4efaa<br /> Content-Disposition: form-data; name="file"; filename="myfile.jpg"<br /> Content-Type: image/jpeg</p> <p>...HERE's the real file content... </p></blockquote> <p>Easy to get the real data (getting everything after CR+LF) but there must be some ejabberd function for it even if I don't know how it's called...</p> Wed, 14 Sep 2016 10:53:46 +0000 andrea comment 67051 at https://www.ejabberd.im