mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
fichier: increase maximum file size from 100GB to 300GB - fixes #4634
This commit is contained in:
parent
41ec712aa9
commit
e7fbdac8e0
@ -323,7 +323,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options .
|
||||
// This will create a duplicate if we upload a new file without
|
||||
// checking to see if there is one already - use Put() for that.
|
||||
func (f *Fs) putUnchecked(ctx context.Context, in io.Reader, remote string, size int64, options ...fs.OpenOption) (fs.Object, error) {
|
||||
if size > int64(100e9) {
|
||||
if size > int64(300e9) {
|
||||
return nil, errors.New("File too big, cant upload")
|
||||
} else if size == 0 {
|
||||
return nil, fs.ErrorCantUploadEmptyFiles
|
||||
|
Loading…
Reference in New Issue
Block a user