mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-02-15 04:58:37 -06:00
* Require 1.9.6 for upgrade, add function to get userID from request * Automatically add user when successfully authenticated with headers / oauth, disallow modifing own user permissions * Dont show user/pw page when using header authentication * Only display redacted versions of API keys #228, fixed deployment password * Added animation for deleting API key * Only create salt once * Disable elements on upload UI if insufficient permissions * BREAKING: User field must be email for OAUTH2, added warning in setup when changing database * BREAKING: Added option to restrict to only registered users * Fixed crash due to concurrent map iteration * Replace /uploadComplete with API call, BREAKING API is now in headers * BREAKING: require true|false instead of only checking for true * BREAKING API: Renamed apiKeyToModify parameter to targetKey
17 lines
384 B
Go
17 lines
384 B
Go
package models
|
|
|
|
// UploadRequest is used to set an upload request
|
|
type UploadRequest struct {
|
|
UserId int
|
|
AllowedDownloads int
|
|
Expiry int
|
|
Password string
|
|
ExternalUrl string
|
|
MaxMemory int
|
|
UnlimitedDownload bool
|
|
UnlimitedTime bool
|
|
IsEndToEndEncrypted bool
|
|
ExpiryTimestamp int64
|
|
RealSize int64
|
|
}
|