ita-social-projects / ita-social-projects/StreetCode_Client

[Functionality] Upload multiple arts at once

Open
#430 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
15
Forks
10
PR merge metrics
No merged PRs in 30d

Description

**Description**
To make uploading arts process more convenient, we want to implement feature to upload multiple arts at once.

### Acceptance Criteria
- Uploading single or multiple arts works fine
- Create and put street code methods are excecuted successfully

***Note** Curent load component has to be rewrited because this code doesn't allow implementing this feature. For example the 'onChange' handler is too specific, it sets link on incoming file image in an intermidiate state. It means no matter how much times in a row we call this handler **state variable always points to the latest one**.

****Note**
Also if we try to set incoming files images not in single variable, but in a list, there is proble that this handler is called twice, when the load of file starts, and once when load ends(with success or failure). This causes extra fillings into our state list, that can not be avoided.

**Epic link**
E.g.: Epic #100 [Epic](https://jira.softserve.academy/browse/100)

**Labels to be added**
"User story", Correspondind Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"

### Tasks
1. - [ ] sample task.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.