Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/canciucostin/tkinter-file-collector
GUI based file uploader using tkinter
https://github.com/canciucostin/tkinter-file-collector
api-rest file-sharing file-upload node node-js nodejs python rest tkinter tkinter-graphic-interface tkinter-gui tkinter-python
Last synced: 22 days ago
JSON representation
GUI based file uploader using tkinter
- Host: GitHub
- URL: https://github.com/canciucostin/tkinter-file-collector
- Owner: CanciuCostin
- Created: 2020-07-07T19:26:29.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T05:35:40.000Z (almost 2 years ago)
- Last Synced: 2024-12-09T12:27:25.517Z (25 days ago)
- Topics: api-rest, file-sharing, file-upload, node, node-js, nodejs, python, rest, tkinter, tkinter-graphic-interface, tkinter-gui, tkinter-python
- Language: Python
- Homepage:
- Size: 24.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tkinter File Collector
![Python][python-shield]GUI based file uploader using tkinter
![](demo.gif)
Collect files from client and send them to a server using multipart form POST requests.
## Build```
pyinstaller --onefile FileCollector.py
```## Usage example
1. Ensure your server is up and listening for requests. You can use a dummy nodejs server:
```
node DummyServer.js
```
2. Run the python application
Source:
```
python FileCollector.py
```
or
Windows executable:
```
.\dist\FileCollector.exe
```## Prerequisites
```
pip install urllib3
```[python-shield]: https://img.shields.io/badge/python-3.8.3-green
## Customize:
* Change your API url inside the post() method:
```
url="http://localhost:8080/upload"
```
* Change your form field name and request body inside the post() method:
```
payload = "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"fileupload\"; filename=\"{0}\"\r\nContent-Type: text/plain\r\n\r\n{1}\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--".format(fileName,fileContent)
```