mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-09 05:34:51 +00:00
Enable the possibility to post data to external Url's with the BrowserWindow.LoadURL function. The post data is provided through LoadURLOptions
34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
namespace ElectronNET.API.Entities
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class UploadFile : IPostData
|
|
{
|
|
/// <summary>
|
|
/// The object represents a file.
|
|
/// </summary>
|
|
public string Type { get; } = "file";
|
|
|
|
/// <summary>
|
|
/// The path of the file being uploaded.
|
|
/// </summary>
|
|
public string FilePath { get; set; }
|
|
|
|
/// <summary>
|
|
/// The offset from the beginning of the file being uploaded, in bytes. Defaults to 0.
|
|
/// </summary>
|
|
public long Offset { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// The length of the file being uploaded, <see cref="Offset"/>. Defaults to 0.
|
|
/// If set to -1, the whole file will be uploaded.
|
|
/// </summary>
|
|
public long Length { get; set; } = 0;
|
|
|
|
/// <summary>
|
|
/// The modification time of the file represented by a double, which is the number of seconds since the UNIX Epoch (Jan 1, 1970)
|
|
/// </summary>
|
|
public double ModificationTime { get; set; }
|
|
}
|
|
} |