2011/2/26 Román González <[email protected]>:
> Hey Greg,
> Thanks for the feedback, just one more question (bellow) about reading the
> files the tester is providing...

>> > - Reading the contents of the files given by the developer on the Test
>> > API
>>
>> I'm not sure I follow you here: what specifically is the problem?
>
> I think I'm wondering where are we going to read the files, would we be
> requiring the tester to provide a full URI for the File location?
> get' "/my-upload" [] $ do
>     addFile "photo" "/tmp/file.jpg"
> Or are we going to have like a SNAP_ROOT where all the paths will go
> get' "/my-upload" [] $ do
>     addFile "photo" "tmp/file.jpg" -- this go to SNAP_ROOT/tmp/file.jpg

I would say, for the testing interface, just supply them as bytestrings.

G
-- 
Gregory Collins <[email protected]>
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap

Reply via email to