# 파일 업로드(fileUpload)

첨부한 파일을 업로드하는 동작을 수행해요. 주로 등록/수정 화면에서 '파일 첨부하기' 버튼 또는 변수 텍스트 블록에 액션 타입으로 많이 사용해요.

{% hint style="info" %}
업로드한 파일을 저장하기 위해서 '저장하기', '등록하기' 버튼의 '데이터 등록/수정' 액션 타입 ➡︎ 추가 데이터를 입력해야 해요.&#x20;
{% endhint %}

* 업로드 파일 형식 : 기본 값은 이미지예요.&#x20;
* 업로드 최대 용량 : 기본 값은 100MB예요. 업로드 용량의 최대 값은 200MB 아래로 설정하시는 것을 추천드려요.
* '데이터 등록/수정' 액션 타입의 추가 데이터 입력 방법은, '파일 업로드' 액션을 설정한 블록의 항목 ID를 사용해요.
  * "블록의 항목 ID" : "inputData.블록의 항목 ID"
  * 예시) "button" : inputData.button"

<figure><img src="/files/NrxSuItgeevoureVrG3u" alt=""><figcaption></figcaption></figure>

버튼을 클릭하면, 설정한 **파일 업로드** 액션에 따라 첨부할 파일을 선택할 수 있는 팝업창을 띄워줘요.

<div align="left"><figure><img src="/files/ntTn6HinY2PvDKdgXQEo" alt="" width="563"><figcaption></figcaption></figure></div>

> \#파일 #파일업로드 #앨범선택 #파일선택 #파일첨부

2023.11.16 Jinny


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ohmyapp.io/main/guide/develop_app/command-execute-function/action/fileupload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
