Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

19
LINES

< > BotCompany Repo | #1025896 // Test file upload bug

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (7587L/42K).

!7

static NanoHTTPD.Response serve(S uri, NanoHTTPD.Method method,
  Map<S,S> header, Map<S,S> params, Map<S,S> files) {
  ret serveHTML(p("Have " + nFiles(l(files)) + ": " + sfu(files) + ", sizes: " + map fileSize(values(files)) + ".")
    + huploadform(
      "File: " + hfileupload(/*"accept", "image/png,image/jpeg,image/gif"*/) + " "
    + "<br>"
    + hsubmit());
}

cmodule TestFileUploadBug > DynPrintLogAndEnabled {
  start-thread {
    if (!enabled) ret;
    printMyIPAddresses();
    serveHttp(print("Port", 6565));
    dm_ownResource(serveHttp_server);
  }
}

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: #1025896
Snippet name: Test file upload bug
Eternal ID of this version: #1025896/10
Text MD5: 7c3e2b03742129bc28037f0a0b5ba02c
Transpilation MD5: a0f3bb92e372716e14f0ed1c374370fe
Author: stefan
Category: javax / html
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-10 13:04:14
Source code size: 589 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 362
Version history: 9 change(s)
Referenced in: [show references]