|
@@ -1,6 +1,5 @@
|
|
|
using Quadarax.Application.TemporarySharedStorage.Client.Dtos.Request;
|
|
using Quadarax.Application.TemporarySharedStorage.Client.Dtos.Request;
|
|
|
using Quadarax.Application.TemporarySharedStorage.Client.Services;
|
|
using Quadarax.Application.TemporarySharedStorage.Client.Services;
|
|
|
-using Quadarax.Foundation.Core.Value.Extensions;
|
|
|
|
|
using Quadarax.Foundation.Core.Logging;
|
|
using Quadarax.Foundation.Core.Logging;
|
|
|
using Quadarax.Foundation.Core.QConsole;
|
|
using Quadarax.Foundation.Core.QConsole;
|
|
|
using Quadarax.Foundation.Core.QConsole.Argument;
|
|
using Quadarax.Foundation.Core.QConsole.Argument;
|
|
@@ -18,8 +17,8 @@ namespace qdr.app.qbstack.Commands
|
|
|
private const string CS_CMD_NAME = "upload";
|
|
private const string CS_CMD_NAME = "upload";
|
|
|
private const string CS_CMD_DESCR = "Upload a file to QDR Temporary Shared Storage.";
|
|
private const string CS_CMD_DESCR = "Upload a file to QDR Temporary Shared Storage.";
|
|
|
|
|
|
|
|
- private const string ARG_FILE_NAME = "filePath";
|
|
|
|
|
- private const string ARG_FILE_HINT = "file_path";
|
|
|
|
|
|
|
+ private const string ARG_FILE_NAME = "file";
|
|
|
|
|
+ private const string ARG_FILE_HINT = "file";
|
|
|
private const string ARG_FILE_DESCR = "Path to the file to upload.";
|
|
private const string ARG_FILE_DESCR = "Path to the file to upload.";
|
|
|
|
|
|
|
|
private const string ARG_DESCR_NAME = "descr";
|
|
private const string ARG_DESCR_NAME = "descr";
|
|
@@ -63,7 +62,7 @@ namespace qdr.app.qbstack.Commands
|
|
|
protected string Message {get;private set;} = string.Empty;
|
|
protected string Message {get;private set;} = string.Empty;
|
|
|
protected string Password {get;private set;} = string.Empty;
|
|
protected string Password {get;private set;} = string.Empty;
|
|
|
protected string Reference {get;private set;} = string.Empty;
|
|
protected string Reference {get;private set;} = string.Empty;
|
|
|
- protected int ChunckSize {get;private set;} = 1048576;
|
|
|
|
|
|
|
+ protected int ChunckSize {get;private set;} = 0;
|
|
|
protected DateTime ActiveFrom {get;private set;} = DateTime.MinValue;
|
|
protected DateTime ActiveFrom {get;private set;} = DateTime.MinValue;
|
|
|
protected DateTime ActiveTo {get;private set;} = DateTime.MinValue;
|
|
protected DateTime ActiveTo {get;private set;} = DateTime.MinValue;
|
|
|
|
|
|
|
@@ -113,7 +112,7 @@ namespace qdr.app.qbstack.Commands
|
|
|
list.Add(new NamedArgument(ARG_AFROM_NAME, ARG_AFROM_DESCR, ARG_AFROM_HINT, TypeValuesEnum.DateTime, string.Empty, true));
|
|
list.Add(new NamedArgument(ARG_AFROM_NAME, ARG_AFROM_DESCR, ARG_AFROM_HINT, TypeValuesEnum.DateTime, string.Empty, true));
|
|
|
list.Add(new NamedArgument(ARG_ATO_NAME, ARG_ATO_DESCR, ARG_ATO_HINT, TypeValuesEnum.DateTime, string.Empty, true));
|
|
list.Add(new NamedArgument(ARG_ATO_NAME, ARG_ATO_DESCR, ARG_ATO_HINT, TypeValuesEnum.DateTime, string.Empty, true));
|
|
|
list.Add(new NamedArgument(ARG_MSG_NAME, ARG_MSG_DESCR, ARG_MSG_HINT, TypeValuesEnum.String, string.Empty, true));
|
|
list.Add(new NamedArgument(ARG_MSG_NAME, ARG_MSG_DESCR, ARG_MSG_HINT, TypeValuesEnum.String, string.Empty, true));
|
|
|
- list.Add(new NamedArgument(ARG_CHSIZE_NAME, ARG_CHSIZE_DESCR, ARG_CHSIZE_HINT, TypeValuesEnum.Integer, "0", false));
|
|
|
|
|
|
|
+ list.Add(new NamedArgument(ARG_CHSIZE_NAME, ARG_CHSIZE_DESCR, ARG_CHSIZE_HINT, TypeValuesEnum.Integer, "1048576", false));
|
|
|
return list;
|
|
return list;
|
|
|
}
|
|
}
|
|
|
|
|
|