# The maximum size of a read/written file.

**URL:** <https://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507>\
**Category:** Scripting\
**Created:** [June 19, 2023, 3:15pm UTC](https://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507 "2023-06-19T15:15:33Z")\
**Posts on this page:** 1\
**Showing post:** 40

<div class="post-metadata">

**Author:** ![optio](https://forum.mikrotik.com/letter_avatar/optio/32/6_449c533f586939b6e5f246632a46421f.png) [@optio](https://forum.mikrotik.com/u/optio)\
**Post date:** [June 22, 2023, 2:00pm UTC](https://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507/40 "2023-06-22T14:00:09Z")

</div>

> [@](#):
>
> In fact, both options work. And if you tell me how to read the received files, then this will be an almost ideal solution.

Already explained above [http://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507/1](http://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507/1) and system note can be used as workaround. You can also provide file over http and use chunked download with fetch tool, also you have post with script by rextended [http://forum.mikrotik.com/t/how-to-download-only-one-piece-of-file-at-a-time-with-tool-fetch-and-put-it-inside-a-variable/151020/1](http://forum.mikrotik.com/t/how-to-download-only-one-piece-of-file-at-a-time-with-tool-fetch-and-put-it-inside-a-variable/151020/1)

> [@](#):
>
> I write “almost” because for some reason (maybe it’s something wrong with me) after rebooting the router, the file disappears. It has to be copied to another location or renamed.

you can use flash of usb storage for persistence, depends on device, to save it on flash use

```plaintext
file="flash/sms"

```

---

_[View the full topic](https://forum.mikrotik.com/t/the-maximum-size-of-a-read-written-file/167507)._
