haxetink / tink_web

Tinkerbell Web Framework
https://haxetink.github.io/tink_web
43 stars 14 forks source link

from UploadedFile to Form File #113

Open postite opened 4 years ago

postite commented 4 years ago

hello . i had a case where I wanted to do:

    var file:FormFile= FormFile.ofBlob("capture_blabla.png","image/png",p) ;

it won't compile because of: https://github.com/haxetink/tink_web/blob/e9d8326311b46caa5766d152c52c316e5079f01b/src/tink/web/forms/FormFile.hx#L18

why isn't it like :

@:forward
abstract FormFile(UploadedFile) from UploadedFile { ...

thx.

kevinresol commented 4 years ago

I think it should be just fine. PR welcome.