# Lua Script upload through MAVFtp Error

**URL:** <https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011>\
**Category:** Mission Planner\
**Created:** [6 June 2022 22:35 UTC](https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011 "2022-06-06T22:35:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.faddis](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@d.faddis](https://discuss.cubepilot.org/u/d.faddis)\
**Post date:** [6 June 2022 22:35 UTC](https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011/1 "2022-06-06T22:35:34Z")

</div>

I am encountered with an error when trying to upload .lua files. They are being uploaded in a “scripts” folder under the APM. Initially there was a “scripts” folder not under the APM.(I am unsure of if this may be a factor.)  
 ![luascript error - VA 20121 1](https://discuss.cubepilot.org/uploads/default/original/2X/2/29cb505978dc45fe09f051b288beeb5a64fe28e7.png)  
This is the resulting error message. When expanded, the details tab reveals this.

 ![mission planner error - VA 20121](https://discuss.cubepilot.org/uploads/default/original/2X/a/a66c18160a6fcae2c888f22bd7254c97badd9476.png)  
What may be causing this error, and how would I go about addressing it to get the .lua files to work in the given location?  
Setup is using an Orange Cube and herelink, and has worked before.  
Arducopter V4.1.5

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [7 June 2022 01:22 UTC](https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011/2 "2022-06-07T01:22:19Z")

</div>

what version of mission planner?

---

<div class="post-metadata">

**Author:** ![d.faddis](https://discuss.cubepilot.org/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@d.faddis](https://discuss.cubepilot.org/u/d.faddis)\
**Post date:** [7 June 2022 13:54 UTC](https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011/3 "2022-06-07T13:54:34Z")

</div>

1.3.77

---

<div class="post-metadata">

**Author:** ![Michael\_Oborne](https://discuss.cubepilot.org/user_avatar/discuss.cubepilot.org/michael_oborne/32/13_2.png) [@Michael\_Oborne](https://discuss.cubepilot.org/u/Michael_Oborne)\
**Post date:** [8 June 2022 00:23 UTC](https://discuss.cubepilot.org/t/lua-script-upload-through-mavftp-error/9011/4 "2022-06-08T00:23:06Z")

</div>

please try update to beta MP
