NudeNet icon indicating copy to clipboard operation
NudeNet copied to clipboard

Docker curl multipart/form-data not possible with every Language

Open ItsDedSec00 opened this issue 1 year ago • 7 comments

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

ItsDedSec00 avatar Jul 11 '24 08:07 ItsDedSec00

Tried it with Base64 encoded image but that don't work.

ItsDedSec00 avatar Jul 11 '24 09:07 ItsDedSec00

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

Which language are you trying from? I am sure from all programming languages this can be done.

bedapudi6788 avatar Jul 11 '24 16:07 bedapudi6788

Encoded Type Multipart file is available in every language, it's a basic http connection

ibnux avatar Jul 13 '24 16:07 ibnux

Is there any way to just use the normal file post command instead of multi file post? I is not possible for some languages to use the multi part file post and I only need to upload one file at once.

Which language are you trying from? I am sure from all programming languages this can be done.

I'm using AppInventor, not really a porgramming language. I now use v2 with the Base64 http POST and docker image. Is there any way to use the same Base64 methode with the v3 model? AppInvetor can't use Multipart.

ItsDedSec00 avatar Jul 31 '24 13:07 ItsDedSec00

@ItsDedSec00 you can write a http server in the middle of fastdeploy docker and appinventor which accepts the base64 and does multiform internally.

bedapudi6788 avatar Jul 31 '24 19:07 bedapudi6788

@ItsDedSec00 you can write a http server in the middle of fastdeploy docker and appinventor which accepts the base64 and does multiform internally.

Thanks will try that. Do I Need to decode the Base64 for v3? Or can I just use the Base64 in the Multipart method?

ItsDedSec00 avatar Aug 01 '24 06:08 ItsDedSec00

base64 is not supported at the moment.

bedapudi6788 avatar Aug 02 '24 10:08 bedapudi6788