Switch branches/tags
Find file History
Pull request Compare This branch is 1 commit behind v0.12.x.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
app
config
i18n
static
views
.gitignore
README.md
aah.project
go.mod

README.md

Example - Form File Upload

This example illustrates aah form file upload. It is easy to handle file uploads in aah. It works by calling (method) Req.SaveFile with form field name and destination path. The method returns file size on successful save.

fileSize, err := Req.SaveFile("userProfileImage", "/Users/jeeva/user-profile-uploads")

Get aah examples

git clone https://github.com/go-aah/examples.git aah-examples

Run this example

cd aah-examples/form-fileupload
aah run

Visit this URL

Home page includes the details of implemented functionality and has a button to choose file and upload. It is self explanatory.