
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?

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 いとうかつとし
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@haskell.org http://www.haskell.org/mailman/listinfo/web-devel

2010/11/24 Simon Michael
On 11/24/10 11:17 AM, Michael Snoyman wrote:
Congratulations, you're a winner in the Yesod Whack-a-Bug competition!
bravo! First confirmed issue ?
Not exactly, there have been a whole bunch of minor issues reported. Some of them have been on the border of feature request/bug fix I think, but frankly I haven't been keeping track. In retrospect, I could have made this whole bug search much more enjoyable ;). Michael
participants (3)
-
Michael Snoyman
-
Simon Michael
-
いとうかつとし