Selaa lähdekoodia

showLinkToFileUploadResult: false by default (#2994)

Artur Paikin 3 vuotta sitten
vanhempi
commit
005a7e48ec
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 1 1
      packages/@uppy/dashboard/src/index.js
  2. 3 3
      website/src/docs/dashboard.md

+ 1 - 1
packages/@uppy/dashboard/src/index.js

@@ -127,7 +127,7 @@ module.exports = class Dashboard extends UIPlugin {
       thumbnailType: 'image/jpeg',
       waitForThumbnailsBeforeUpload: false,
       defaultPickerIcon,
-      showLinkToFileUploadResult: true,
+      showLinkToFileUploadResult: false,
       showProgressDetails: false,
       hideUploadButton: false,
       hideCancelButton: false,

+ 3 - 3
website/src/docs/dashboard.md

@@ -73,7 +73,7 @@ uppy.use(Dashboard, {
   height: 550,
   thumbnailWidth: 280,
   defaultTabIcon,
-  showLinkToFileUploadResult: true,
+  showLinkToFileUploadResult: false,
   showProgressDetails: false,
   hideUploadButton: false,
   hideRetryButton: false,
@@ -148,9 +148,9 @@ Whether to wait for all thumbnails from `@uppy/thumbnail-generator` to be ready
 
 This is useful because Thumbnail Generator also adds EXIF data to images, and if we wait until it’s done processing, this data will be avilable on the server after the upload.
 
-### `showLinkToFileUploadResult: true`
+### `showLinkToFileUploadResult: false`
 
-By default, when a file upload has completed, the file icon in the Dashboard turns into a link to the uploaded file. If your app does not publicly store uploaded files or if it's otherwise unwanted, pass `showLinkToFileUploadResult: false`.
+Turn the file icon and thumbnail in the Dashboard into a link to the uploaded file. Please make sure to return the `url` key (or the one set via `responseUrlFieldName`) from your server.
 
 ### `showProgressDetails: false`