"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
gofile: fix failed downloads on newly uploaded objects
Nick Craig-Wood3f7651291b98
diff --git a/backend/gofile/gofile.go b/backend/gofile/gofile.goindex f6906b4e6..8f7b98b89 100644--- a/backend/gofile/gofile.go+++ b/backend/gofile/gofile.go@@ -1469,6 +1469,13 @@ func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.Readif o.id == "" {return nil, errors.New("can't download - no id")}+ if o.url == "" {+ // On upload an Object is returned with no url, so fetch it here if needed+ err = o.readMetaData(ctx)+ if err != nil {+ return nil, fmt.Errorf("read metadata: %w", err)+ }+ }fs.FixRangeOption(options, o.size)var resp *http.Responseopts := rest.Opts{