Forms statement error -8066

Issue: you receive error -8066 when uploading a file.

When attempting to upload a file, the following error displays:

Event(Time="15.928500", Type='VM error data') / Program stopped at 'test.4gl', line number 27.\012FORMS statement error number -8066.\012Could not write destination file for file transfer.\012</Event>

The solution: Check that the path is correct or that you have the permissions to write in the directory you need to upload the file to.