Uses 911K of libraries. Click here for Pure Java version (5793L/29K).
1 | !7 |
2 | |
3 | cmodule UploadFile {
|
4 | S filePath, result; |
5 | |
6 | visual |
7 | withMargin(vstackWithSpacing( |
8 | jCenteredSection("File to upload",
|
9 | dm_filePathInput filePath()), |
10 | jbutton("Upload", rThread upload),
|
11 | dm_fieldLabel result())); |
12 | |
13 | void upload enter {
|
14 | try {
|
15 | setField(result := uploadFileToFileServer(filePath)); |
16 | } catch print e {
|
17 | setField(result := exceptionToStringShort(e)); |
18 | } |
19 | } |
20 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1026781 |
| Snippet name: | Upload file to file server [authed only] |
| Eternal ID of this version: | #1026781/4 |
| Text MD5: | 868ee6ac078e4787bdf3025488240efa |
| Transpilation MD5: | bc0bee09bfb67dd9be376c36b35892bb |
| Author: | stefan |
| Category: | javax / stefan's os |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-01-22 14:25:23 |
| Source code size: | 447 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 414 / 579 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |