Uploading images in spirit through the media library

we are trying to upload images through the media library. Both using upload file or drag and drop.
After uploading the file, we get an error (something like "we could not upload the file, please try later"). the file appears in the ftp folder, but it is not shown in the media library.
Can you help us with this?
thank you in advance.