"goupload" is a simple manager images files with these functionalities:
- upload a file
- only "gif", "jpg" & "png" extensions
- limitation size to 2 Mb
- display file informations
- name
- size
- date of last modifications
- dimensions: width & height
- delete a file
- Install:
go get github.com/EtienneR/go_upload
- Launch the server since the folder application:
go run main.go
- Access to the server with the URL address: 127.0.0.1:3000
- Put you in the application folder
- Build the image:
sudo docker build -t go_upload .
- Run the application in a temporarly container:
sudo docker run --publish 3000:3000 --name go_upload_test --rm go_upload
- Access to the server with the URL address: 127.0.0.1:3000