thelovemsg / chatting_app

0 stars 0 forks source link

make file save funtionality in front-end #4

Open thelovemsg opened 1 year ago

thelovemsg commented 1 year ago

objective

make file save funtionality in front-end

detailed work content

  • When user drag his file to chatting room, i want to make user to share his files to another users.
  • this functionality need to show the size of file and loading bar whether file is uploaded normally.
  • Let us think what file folder structure is idle one. Should we save files by chatting room or user?
  • How to upload file in websocket environment?

    note

  • test needed to be done before this in two ways. (1) save file by chatting room. (2) save file by user. for this, you'll be needed to make test code. Make use of chatGPT!
thelovemsg commented 1 year ago

yes, my lord....

thelovemsg commented 1 year ago

I think i come up with good way to depart files properly.

Thus, i think we should save files based on the chatting room! we can search infomation of files!

thelovemsg commented 1 year ago

Steps to solve this requirement!

  1. user enter the chatting room.
  2. he starts to chat with another user.
  3. each of them want to share their file.
  4. if they upload their file, website ask if you really want to upload it and show the size of file in byte.
  5. If he's okay to share it, it finally upload file and another user can download it on his computer or laptop.
  6. Although he doesn't get that file right away, he can redownload files within 30 days.
  7. If the download is done, it's end of the process.

something needed to be made someday. these are second step for after the above.

  1. If user click 'ㄴ>' icon beside the picture, he give a speach of this picture. it's also same with any content(file, picture, comment etc)
  2. If they click right mouse on the picture, he can choose to share this picture with others or download.