Skip to content

File Upload — Reference

Reference · Advanced · Server Connect

Move received multipart file data into a configured server folder.

Move received multipart file data into a configured server folder.

  • An appropriately configured Server Connect action and isolated test inputs.

Move received multipart file data into a configured server folder.

Setting Meaning
NameNames the upload metadata result, for example upload_files.
Upload FieldsSelect the incoming file field or collection. A single-field selection can return one metadata object; a collection selection returns an array. The choice affects how later Insert or Repeat steps should bind the result.
PathThe application-relative server destination. Choose it explicitly: a public Node.js destination normally begins /public/, while its browser URL omits that part. The runtime defaults differ between Node.js and PHP; do not rely on an omitted path.
TemplateOptional filename mask. {name} is the base filename, {ext} includes its leading dot, {guid} creates an identifier and {_n} provides collision numbering. The installed Node.js/PHP helpers differ in how {_n} adds separators. Use the returned path and name rather than predicting them.
Replace SpacesReplaces whitespace in received filenames with underscores before saving.
Replace Diacritics/AccentApplies the runtime’s transliteration to accented characters. Check filenames from the languages your application accepts.
Strip All Non ASCIIRemoves non-ASCII characters from received filenames. It can remove meaningful characters or produce collisions; it is not content validation.
OverwriteAllows replacement of an existing destination filename. Default off; collision handling otherwise chooses a unique name.
Create PathCreates a missing destination directory when enabled. Runtime default on. Server filesystem permissions still apply.
Throw ErrorsRequests errors for failed/truncated transfers handled by the module. It does not make a missing file required and does not replace size/type validation.
OutputIncludes the named upload metadata in the response. Default off. Only return metadata the caller should receive.

Build the single-file form and action from Upload a file to your server. Use a disposable .txt file with the required size/type rules. After submission, compare the returned name and path with the actual saved file. If the output is one object, use upload_files.name; if it is an array, repeat its records or deliberately select the appropriate item.

The upload result contains metadata such as name, path, url, type and size; it is not a database insert. A declared MIME type or filename extension is not proof of file contents. Restrict the caller and destination, validate uploads before accepting them, and handle a database failure that occurs after the file has already been stored.

Place the check or file operation before the work that depends on it, then verify the final HTTP response and any resulting data or file changes.

You can configure this operation and verify both its expected result and its failure boundary.