6#include <istd/IPolymorphic.h>
7#include <istd/TRange.h>
194 const QByteArray& fileId,
195 const istd::CIntRange& range,
196 const QByteArray& data) = 0;
Interface for handling chunked file uploads.
virtual FilelUploadStatus ReceiveFileChunk(const QByteArray &fileId, const istd::CIntRange &range, const QByteArray &data)=0
Receive and store a chunk of file data.
FilelUploadStatus
Status codes returned by ReceiveFileChunk().
@ FUS_FAILED_TO_SEEK
Failed to seek to the chunk's position in the file.
@ FUS_CHUNK_OUT_OF_RANGE
The chunk range is outside the expected file size.
@ FUS_OK_COMPLETE
Chunk received successfully, upload is complete.
@ FUS_FAILED_TO_OPEN
Failed to open the target file for writing.
@ FUS_FAILED_TO_WRITE
Failed to write the chunk data to the file.
@ FUS_OK_PARTIAL
Chunk received successfully, more chunks expected.
@ FUS_INVALID_FILE_ID
The provided file ID is not recognized.