instructions.txt 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Write WordPress plugin called "qdr-temporary-shared-storage" in PHP, that extends WordPress functionality for REST API interface to upload temporary media files and provide permalink to download to anybody who has permalink (via password protected download page)
  2. Plugin will have following features:
  3. 1. Allows to upload media file (one huge) via REST API with folowing properties (use upload with chuncks):
  4. original-file-name - Original file name (string)
  5. description - File description (string)
  6. message - Custom message (string)
  7. active-from - Datetime from permalink will be active (datetime)
  8. active-to - Datetime to permalink will be active (datetime) (datetime)
  9. password - password for download file (string)
  10. reference - Custom reference value (string)
  11. - returns:
  12. media_id
  13. permalink (or shortcode) to download file
  14. 2. Allows to edit folowing media properties by media_id via REST API:
  15. message - Custom message (string)
  16. active-from - Datetime from permalink will be active (datetime)
  17. active-to - Datetime to permalink will be active (datetime) (datetime)
  18. reference - Custom reference value (string)
  19. 3. Allows to delete media by media_id via REST API
  20. 4. Allows to get media following properties via REST API:
  21. original-file-name - Original file name (string)
  22. description - File description (string)
  23. message - Custom message (string)
  24. active-from - Datetime from permalink will be active (datetime)
  25. active-to - Datetime to permalink will be active (datetime) (datetime)
  26. reference - Custom reference value (string)
  27. 5. Allows to get media collection following properties via wordpress query:
  28. original-file-name - Original file name (string)
  29. description - File description (string)
  30. message - Custom message (string)
  31. active-from - Datetime from permalink will be active (datetime)
  32. active-to - Datetime to permalink will be active (datetime) (datetime)
  33. reference - Custom reference value (string)
  34. 6. Allows to download media file via provided permalink and download page where must be put by user following values:
  35. password
  36. reference
  37. - count medial downloads, stores last dowload (last-download) as datetime
  38. 5. Creates Cron job (one per hour) to scan for expired (active-to) media (media record and content files) and deletes them
  39. 6. Creates in menu Media | Shared Storage page with grid that will have following columns:
  40. media_id
  41. original-file-name - Original file name (string)
  42. description - File description (string)
  43. message - Custom message (string)
  44. active-from - Datetime from permalink will be active (datetime)
  45. active-to - Datetime to permalink will be active (datetime) (datetime)
  46. reference - Custom reference value (string)
  47. upload-date
  48. download-count
  49. latedt-downlaod
  50. - allows to edit properties
  51. - allows search/filter by original-file-name, reference
  52. - allows to sort by all columns
  53. - allows paging support
  54. 7. Creates in menu Settings | Shared Storage that shows following settings:
  55. API key to use with REST client
  56. Specification of Media Category to be assigned during media upload
  57. Maximal upload total size - size of all media stored under category defined in field above - if limit reach upload will not be possible
  58. Button to Save Settings
  59. Button to Purge expired Media (Same as in cron job)
  60. 8. All text will be translatable