Skip to content

Instantly share code, notes, and snippets.

View aluink's full-sized avatar

Eric Polino aluink

  • Nurx / Thirty Madison
  • Chattanooga, TN
View GitHub Profile
@aluink
aluink / gist:1566827
Created January 5, 2012 19:37
aluink
------------------------------------------------------------------------------
-- | Handles package uploads
storeUploadedFile :: AppHandler ()
storeUploadedFile = do
res <- handleFileUploads
tmpUploadDir
defaultUploadPolicy
(\_ -> allowWithMaximumSize maxUploadSize)
(mapM copyUploadedFile)
let str = concat $ map (show