Hi,
I need to save fileDescriptor in tests. so I need to use FileUploadingAPI.
when referencing to it I get error: package com.haulmont.cuba.gui.upload does not exist.
Someone in the forum posted this problem in the past, but no success.
maybe there is other way to save a file in tests?
Could please attach your test class? Most likely you are trying to create test in core module that does not depend on gui and thus cannot use gui classes at all.
If you want to save FileDescriptor along with file content you can use FileLoader bean and save file descriptor using DataManager.