12 #ifndef __NET_HTTPUPLOADEDFILE_H__
13 #define __NET_HTTPUPLOADEDFILE_H__
29 static constexpr
int64 DefaultMaxInMemorySize = 2500000;
44 myMaxInMemorySize(DefaultMaxInMemorySize)
73 return !myTempFileName.isstring();
76 void forceToStorage();
81 bool multipleChunks(
int64 chunk_size = -1)
const;
84 void removeTempFile();
89 myName.makeSentinel();
90 myContentType.makeSentinel();
92 myInMemoryValue.clear();
93 myTempFileName.makeSentinel();
100 return myName.isSentinel();
105 myMaxInMemorySize = max_size;
135 friend class NET_HttpIO;
140 void convertInMemoryToStorage();
154 int64 myMaxInMemorySize;
168 static const bool clearNeedsDestruction =
false;
172 #endif // __NET_HTTPUPLOADEDFILE_H__
SYS_FORCE_INLINE bool isInMemory() const
Is this file in memory or stored on disk.
static void clear(NET_HTTPUploadedFile &ufile)
GLsizei const GLchar *const * string
static bool isClear(NET_HTTPUploadedFile &ufile)
SYS_FORCE_INLINE void makeSentinel()
GLuint GLsizei GLsizei * length
NET_HTTPUploadedFile & myFile
SYS_FORCE_INLINE const UT_StringHolder & contentType() const
The content type of the file.
const UT_StringHolder & fileLocation() const
static void clearConstruct(NET_HTTPUploadedFile *ufile)
void setMaxInMemorySize(int64 max_size)
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
GLuint const GLchar * name
Read data from an uploaded file.
LeafData & operator=(const LeafData &)=delete
NET_HTTPUploadedFile(SentinelType)
SYS_FORCE_INLINE int64 size() const
The size of the file.
SYS_FORCE_INLINE bool isSentinel() const
class IMF_EXPORT_TYPE IStream