[web-devel] [Yesod?][Chromium?] file-echo.lhs on chromium
Michael Snoyman
michael at snoyman.com
Wed Nov 24 20:17:33 CET 2010
Congratulations, you're a winner in the Yesod Whack-a-Bug competition!
Funny, I could have sworn I fixed this issue months ago. The problem
resides in the multipart force parsing logic in wai-extra: it only
considers a file upload valid if it has a filename and content type,
when in reality the filename is sufficient. I've uploaded wai-extra
0.2.4.2, which should fix this bug. Would you mind upgrading your
wai-extra and confirming for me?
Thanks,
Michael
2010/11/24 いとうかつとし <cutsea110 at gmail.com>:
> Hi
> now, I runhaskell file-echo.lhs sample which in yesoddocs/yesod/tutorials,
> and check it on firefox and chromium browsers.
> On firefox, I confirm the program works good for varias type files.
> But, on chromium, i get error for same uploaded files which has no
> extensions like as README, TODO, LICENSE, ...
> when, I modify file-echo.lhs as below in order to get a log.
> ---
> postHomepage = do
> rr <- getRequest
> liftIO $ putStrLn "OK" --
> Logging
> (_, files) <- liftIO $ requestBody rr
> fi <- maybe notFound return $ lookup "file" files
> liftIO $ do
> -- Logging
> putStrLn $ fileName fi
> putStrLn $ fileContentType fi
> return [(fileContentType fi, toContent $ fileContent fi)]
> ---
> On chromium, this handler function success to putStrLn "OK", but fail to
> putStrLn the others.
> I'd like to check HTTP headers, But i couldn't find my POST request in
> "Resources".
> The developer tool on chromium, my POST request is replaced by a request for
> 'chrome://chromewebdata/'
> Anyone knows this problem?
>
> _______________________________________________
> web-devel mailing list
> web-devel at haskell.org
> http://www.haskell.org/mailman/listinfo/web-devel
>
>
More information about the web-devel
mailing list