Skip to content

Getting ShortWriteException when Uploading File and Temporal Folder doesn't exist #55

Description

@roman

For some reason, when using the handleFileUploads function and specifying a folder that doesn't exist on the file system, the code throws a ShortWriteException error

To replicate:

  • generate a Snap project using snap init
  • put the form.html in the resources/static folder
  • put the Site.hs in the src/ folder
  • run the Snap app
  • go to http://localhost:8000/new
  • upload any file you want
  • check the logs/error.log

Here is the gist with the source code to use:

https://gist.github.com/826286

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions