mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
5 years ago
|
## forum-image-upload
|
||
|
|
||
|
### Objectives
|
||
|
|
||
|
You must follow the same [principles](https://public.01-edu.org/subjects/forum/forum.en) as the first subject.
|
||
|
|
||
5 years ago
|
In `forum image upload`, registered users have the possibility to create a post containing an image as well as text.
|
||
5 years ago
|
|
||
|
- When viewing the post, users and guests should see the image associated to it.
|
||
|
|
||
|
There are various extensions for images like: JPEG, SVG, PNG, GIF, etc. In this project you have to handle at least JPEG, PNG and GIF types.
|
||
|
|
||
5 years ago
|
The max size of the images to load should be 20 mb. If there is an attempt to load an image greater than 20mb, an error message should inform the user that the image is too big.
|
||
5 years ago
|
|
||
5 years ago
|
This project will help you learn about:
|
||
|
|
||
|
- Image manipulation
|
||
|
- Image types
|
||
|
|
||
|
### Hints
|
||
|
|
||
|
- Be cautious with the size of the images.
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
- The backend must be written in **Go**.
|
||
|
- You must handle website errors.
|
||
|
- The code must respect the [good practices](https://public.01-edu.org/subjects/good-practices.en)
|
||
|
- It is recommended that the code should present a **test file**.
|
||
|
|
||
|
### Allowed packages
|
||
|
|
||
|
- Only the [standard go](https://golang.org/pkg/) packages are allowed
|