### Upload Specific File via Argument Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Upload a designated file by providing its path as a command-line argument, bypassing the interactive prompt. Includes example output. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip # Example output: # Uploading... |████████████████████⣀⣀⣀⣀⣀| 75.2% 45.3 MB/60.2 MB @ 5.2 MB/s ETA: 0m 02s # ╔════════════════════════════════════════════════════════════════════╗ # ║ File Uploaded Successfully! ║ # ║══════════════════════════════════════════════════════════════════║ # ║ Link: https://vikingfile.com/abc123xyz ║ # ╚════════════════════════════════════════════════════════════════════╝ ``` -------------------------------- ### Python Module: Get Upload Server Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Use the `get_upload_server` function to dynamically fetch an available upload server URL from the VikingFile API. Includes error handling. ```python from upload import get_upload_server # Get dynamic upload server URL server_url = get_upload_server() # Returns: "https://upload-server-1.vikingfile.com/upload" (or similar) if server_url: print(f"Using upload server: {server_url}") else: print("Failed to get upload server - API may be unavailable") ``` -------------------------------- ### VikingFile API: Get Upload Server (curl) Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Demonstrates how to directly call the VikingFile API endpoint to retrieve an available upload server URL using curl. ```bash # Direct API call with curl curl -s "https://vikingfile.com/api/get-server" # Response: {"server": "https://upload-server-1.vikingfile.com/upload"} ``` -------------------------------- ### Download and Run Script Locally Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Download the upload script for local execution. Supports interactive mode and running with arguments. ```bash # Download the script curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py" -o upload.py # Run in interactive mode python3 upload.py # ▶ Enter the path to the file: /home/user/documents/report.pdf # ▶ Enter user hash (optional, press Enter to skip): # ▶ Enter the path on VikingFile (optional, press Enter to skip): # Run with arguments python3 upload.py /home/user/documents/report.pdf # Run with all options python3 upload.py /home/user/documents/report.pdf "abc123hash" "Documents/Reports" ``` -------------------------------- ### Upload File with User Hash Source: https://github.com/hexdare/vikingfile-upload/blob/main/README.md Upload a file and associate it with your account by providing your user hash as the second argument. Replace `YOUR_USER_HASH` with your actual hash. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip "YOUR_USER_HASH" ``` -------------------------------- ### Run Viking File Uploader Source: https://github.com/hexdare/vikingfile-upload/blob/main/README.md Execute the uploader script directly from GitHub. This command downloads and runs the upload script. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") ``` -------------------------------- ### Python Module: Basic File Upload Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Import and use the `upload_file` function programmatically for basic file uploads. Handles optional arguments for user hash and path. ```python from upload import upload_file, display_success_message # Basic upload download_link = upload_file("/path/to/file.zip") if download_link: print(f"File available at: {download_link}") display_success_message(download_link) # Upload with account association download_link = upload_file( file_path="/path/to/video.mp4", user_hash="your_user_hash_here", path="Videos/Uploads" ) # Handle upload errors download_link = upload_file("/path/to/large_file.iso") if download_link is None: print("Upload failed - check file path or network connection") ``` -------------------------------- ### Upload File to Folder with User Hash Source: https://github.com/hexdare/vikingfile-upload/blob/main/README.md Upload a file to a specific folder within your account using the Viking File Uploader. Provide the file path, user hash, and folder name. Replace `MyFiles` with your desired folder name. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip "YOUR_USER_HASH" MyFiles ``` -------------------------------- ### Upload a Specific File with Viking File Uploader Source: https://github.com/hexdare/vikingfile-upload/blob/main/README.md Upload a specified file using the Viking File Uploader script. Replace `/path/to/your/file.zip` with the actual file path. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip ``` -------------------------------- ### Upload with User Hash for Account Association Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Associate uploads with your VikingFile account by including your user hash as the second argument. The file will be linked to your account. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip "YOUR_USER_HASH" # The file will be uploaded and linked to your VikingFile account # Returns: https://vikingfile.com/abc123xyz ``` -------------------------------- ### Upload to Specific Folder Source: https://context7.com/hexdare/vikingfile-upload/llms.txt Organize uploaded files into specific folders on your VikingFile account by providing the folder name or path as the third argument. ```bash python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/your/file.zip "YOUR_USER_HASH" "MyFiles" # Upload to nested folder python3 <(curl -sL "https://raw.githubusercontent.com/Hexdare/VikingFile-Upload/main/upload.py") /path/to/video.mp4 "YOUR_USER_HASH" "Videos/2024" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.