Show a tip about notebook file upload (#2868)

This commit is contained in:
Jonatan Kłosko 2024-11-22 10:17:36 +01:00 committed by GitHub
parent dd384bc946
commit 692251d3bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,6 +40,16 @@ defmodule LivebookWeb.SessionLive.AddFileEntryUploadComponent do
<%= message %>
</div>
</div>
<div class="mb-6">
<.message_box kind="info">
This will upload the file as an attachment in the notebook files/ directory.
If you want to upload it to a file storage instead, choose <.link
class="text-blue-600 "
patch={~p"/sessions/#{@session.id}/add-file/storage"}
>"From storage"</.link>,
then drag and drop the file to the desired storage and directory.
</.message_box>
</div>
<.form
:let={f}
for={@changeset}