Skip to content

File upload #245

Answered by JoernT
timathom asked this question in Q&A
Feb 15, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Well Fore should not hold you back from putting a file input into your page and use it in a usual way.

The interesting point comes when you want to send some additional parameters with the request. That needs binding that to the data. This is already possible with something like this:

<fx-control ref="fileupload">
  <label>...</label>
  <input type="file">
</fx-control>

If the user chooses a file the filename will end up in the bound node but of course you actually want the data. The actually missing part is multipart formdata support for submission.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JoernT
Comment options

@timathom
Comment options

@JoernT
Comment options

Answer selected by timathom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants