@@ -742,102 +742,6 @@ Under the :guilabel:`Feature` column, panel will display following information:
742
742
related child feature.
743
743
744
744
745
- .. index :: External Storage, WebDAV
746
- .. _external_storage :
747
-
748
- Storing and fetching an external resource
749
- ==========================================
750
-
751
- A field may target a resource stored on an external storage system. Attribute forms can be configured
752
- so they act as a client to an external storage system in order to store and fetch those resources, on
753
- users demand, directly from the forms.
754
-
755
- .. _external_storage_configuration :
756
-
757
- Configuring an external storage
758
- -------------------------------
759
-
760
- In order to setup an external storage, you have to first configure it from the vector
761
- :ref: `attribute form properties <edit_widgets >` and select the :guilabel: `Attachment ` widget.
762
-
763
- .. _figure_external_storage_configuration :
764
-
765
- .. figure :: img/external_storage_configuration.png
766
- :align: center
767
-
768
- Editing a WebDAV external storage for a given field
769
-
770
- From the :guilabel: `Attachment ` widget, you have to first select the :guilabel: `Storage type `:
771
-
772
- * :guilabel: `Select Existing File `: The target URL already exists. When
773
- you select a resource, no store operation is achieved, the attribute is simply updated with the URL.
774
-
775
- * :guilabel: `Simple Copy `: Stores a copy of the resource on a file disk destination
776
- (which could be a local or network shared file system) and the attribute is updated with the path to
777
- the copy.
778
-
779
- * :guilabel: `WebDAV Storage `: The resource is pushed to a HTTP server supporting the
780
- `WebDAV <https://en.wikipedia.org/wiki/WebDAV >`_ protocol and the attribute is updated with
781
- its URL. `Nextcloud <https://nextcloud.com/ >`_, `Pydio <https://pydio.com >`_
782
- or other file hosting software support this protocol.
783
-
784
- * :guilabel: `AWS S3 `: The resource is pushed to a server supporting
785
- `AWS Simple Storage Service <https://en.wikipedia.org/wiki/Amazon_S3 >`_ protocol and the attribute is
786
- updated with its URL. Amazon Web Service and `MinIO <https://en.wikipedia.org/wiki/MinIO >`_ hosting software
787
- support this protocol.
788
-
789
- Then, you have to set up the :guilabel: `Store URL ` parameter, which provides the URL to be used when a new
790
- resource needs to be stored. It's possible to set up an expression using the
791
- :ref: `data defined override widget <data_defined >` in order to have specific values according to
792
- feature attributes.
793
-
794
- The variable **@selected_file_path ** could be used in that expression and represent the absolute
795
- file path of the user selected file (using the file selector or drag'n drop).
796
-
797
- .. note ::
798
-
799
- Using the **WebDAV ** or **AWS S3 ** external storage, if the URL ends with a "/", it is considered as a folder and
800
- the selected file name will be appended to get the final URL.
801
-
802
-
803
- If the external storage system needs to, it's possible to configure an
804
- :ref: `authentication <authentication >`.
805
-
806
- .. note ::
807
-
808
- To use the **AWS S3 ** external storage, you must use an **AWS S3 ** authentication type.
809
-
810
- .. _external_storage_use :
811
-
812
- Using an external storage
813
- -------------------------
814
-
815
- Once configured, you can select a local file using the button :guilabel: `... ` when editing a feature's attribute.
816
- Depending on the configured :ref: `storage type <external_storage_configuration >`, the file
817
- will be stored on the external storage system (except if :guilabel: `Select existing file ` has been
818
- selected) and the field will be updated with the new resource URL.
819
-
820
- .. _figure_external_storage_store :
821
-
822
- .. figure :: img/external_storage_store.png
823
- :align: center
824
-
825
- Storing a file to a WebDAV external storage
826
-
827
- .. note ::
828
-
829
- User can also achieve the same result if he drags and drops a file on the whole attachment
830
- widget.
831
-
832
- Use the |taskCancel | :sup: `Cancel` button to abort the storing process.
833
- It's possible to configure a viewer using the :guilabel: `Integrated document viewer `
834
- so the resource will be automatically fetched from the external storage system and
835
- displayed directly below the URL.
836
- The above |warning | icon indicates that the resource cannot be fetched
837
- from the external storage system. In that case, more details might appear in the
838
- :ref: `log_message_panel `.
839
-
840
-
841
745
.. Substitutions definitions - AVOID EDITING PAST THIS LINE
842
746
This will be automatically updated by the find_set_subst.py script.
843
747
If you need to create a new substitution manually,
@@ -928,14 +832,10 @@ from the external storage system. In that case, more details might appear in the
928
832
:width: 1.5em
929
833
.. |sort | image :: /static/common/sort.png
930
834
:width: 1.5em
931
- .. |taskCancel | image :: /static/common/mTaskCancel.png
932
- :width: 1.5em
933
835
.. |toggleEditing | image :: /static/common/mActionToggleEditing.png
934
836
:width: 1.5em
935
837
.. |undo | image :: /static/common/mActionUndo.png
936
838
:width: 1.5em
937
- .. |warning | image :: /static/common/mIconWarning.png
938
- :width: 1.5em
939
839
.. |zoomTo | image :: /static/common/mActionZoomTo.png
940
840
:width: 1.5em
941
841
.. |zoomToSelected | image :: /static/common/mActionZoomToSelected.png
0 commit comments