kk
This commit is contained in:
@@ -50,6 +50,33 @@ def _extract_key(payload: Any) -> Optional[str]:
|
||||
|
||||
class FileIO(Provider):
|
||||
"""File provider for file.io."""
|
||||
PROVIDER_NAME = "file.io"
|
||||
|
||||
@classmethod
|
||||
def config(cls) -> List[Dict[str, Any]]:
|
||||
return [
|
||||
{
|
||||
"key": "api_key",
|
||||
"label": "API Key",
|
||||
"default": "",
|
||||
"secret": True
|
||||
},
|
||||
{
|
||||
"key": "expires",
|
||||
"label": "Default Expiration (e.g. 1w)",
|
||||
"default": "1w"
|
||||
},
|
||||
{
|
||||
"key": "maxDownloads",
|
||||
"label": "Max Downloads",
|
||||
"default": 1
|
||||
},
|
||||
{
|
||||
"key": "autoDelete",
|
||||
"label": "Auto Delete",
|
||||
"default": True
|
||||
}
|
||||
]
|
||||
|
||||
def __init__(self, config: Optional[Dict[str, Any]] = None):
|
||||
super().__init__(config)
|
||||
|
||||
Reference in New Issue
Block a user