7.11. Public links to files and directories in storage

Important points:

  • Links can only be managed via web interface (with authorization and write permissions) and via storage API.
  • Access to files and directories via public links does not require authorization.
  • Maximum number of links — 1000.
  • All links are stored in a special file that is not visible in the storage, but is counted when calculating used disk space.
  • Public links are not intended for embedding on sites — for this purpose, use either public access and direct links, or Secure Link.

Public links allow you to provide access to individual files and directories without authorization. A link to a file allows you to download it directly, link to a directory — view and download its contents, additionally for directories you can configure access to change its contents (upload files, create directories, rename and delete).

All links are created in the format https://example.cdn.express/~/share/suffix/path, where https://example.cdn.express/storage address, suffix — unique link suffix, path — path to the file or directory within the storage.

When creating a link via storage API, you can also set the time for its automatic deletion.
  1. Open the web interface of the storage.
  2. Log in as web access user with write permissions.
  3. Next to the name of the desired file or directory, click 🔗:
  4. Copy the created link (for directories, you can also configure access to modify its contents):
  5. Provide the copied link to the person with whom you want to share the file or directory.

Existing links can be viewed, configured and deleted in the same way.

Links can be deleted manually via web interface (similar to creating) or via storage API.

Links are also deleted automatically:

  • If the file or directory to which the link pointed has been renamed, moved, or deleted — within 1 hour of such an operation.
  • If the link was created via storage API with a deletion time set — within 5 minutes after that time.
Content

    (4)

    Comments

    extremalpro1
    Добрий день. Мені потрібно протестувати посилання на фото. Чи можете ви надати зразок повного публічногопосилання на існуюче фото в сховище?
    karaban.ua
    Добрий день. Мені потрібно протестувати посилання на відео. Чи можете ви надати зразок повного публічного посилання на існуюче відео в сховище?
    maksym.zalizniak
    Доброго дня, хоч приблизний мануал для підключення до вордпресу, як альернативи папки Uploads є можливість надати?
    Ваша підтримка, нажаль запропонувала захищені посилання, публічні посилання, FTP доступ. Та нажаль рішень як у амазону тут не видно, та писати свій плагін як у амазону кожному собі під найпопулярнішу платформу трошки не правильно.
    karlov
    Готового рішення, на жаль, немає. Компанія надає тільки API для роботи з вмістом сховища — https://www.ukraine.com.ua/uk/wiki/storage/api/, а компоненти сайту для взаємодії з ним необхідно створювати самостійно або залучати фахівців із відповідної CMS, які зможуть створити необхідний плагін.
    alex.wolf.inbox
    Вітаю, чи можна якимось чином генерувати посилання (створити публічне посилання на сховище, а далі підставити шлях до файлу), а то щось я так роблю, воно в мене не працює 😥
    rudenko
    Це можливо лише для публічного сховища. Для цього в розділі "Керування сховищем" треба в розділі "Користувачі" в рядку "Публічний доступ" встановити чекбокс "Читання". Але в такому разі всі файли стануть доступні для користувачів мережі інтернет.