MediaLibrary-FileUploader-Node-Front.uml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. @startuml
  2. /' Multi DB connection Gateway'/
  3. title "Media Library(Image) Sequence Diagram"
  4. boundary User_Page as userpage
  5. participant Frontend_Server as frontend
  6. participant Media_End_Server as mediaend
  7. control Media_Storage as storage
  8. participant Backend_Server as backend
  9. database Media_Table as db
  10. autonumber
  11. userpage->frontend: media liabrary page
  12. frontend->mediaend: upload media
  13. note over mediaend
  14. <b>case 1. PHP Frontend</b>
  15. FrontEnd = MediaEnd
  16. <b>case 2. React Frontend</b>
  17. Use Express Webserver
  18. as a MediaEnd
  19. Save folder format
  20. /uploads/yyyy/mm/dd
  21. (Auto mkdir)
  22. end note
  23. note over mediaend #73EDFC
  24. <b>Auto Sizing/Naming Files</b>
  25. Cropping from (0)Main Image to
  26. (1)thumbnail (2) middle (3)big
  27. end note
  28. mediaend->storage: store 4 media files
  29. note over storage #99FF99
  30. <b>case 1. Local Webserver</b>
  31. Save in local server
  32. <b>case 2. Remote VPN</b>
  33. Save in remote VPN
  34. end note
  35. storage->mediaend: successful upload
  36. /'5'/
  37. mediaend->frontend: media 4 file URLs
  38. frontend->backend: media-bact(with main file and 4 file names)
  39. note over backend #FCC873
  40. Save Head/Body Stucture
  41. end note
  42. backend->db: save media table records
  43. db ->backend : sucessful record saving
  44. backend ->frontend: return 200 status
  45. frontend ->userpage: show "save OK message"
  46. @enduml