12 #ifndef __NET_HTTPUPLOADEDFILE_H__
13 #define __NET_HTTPUPLOADEDFILE_H__
62 return !myTempFileName.isstring();
65 void forceToStorage();
70 bool multipleChunks(
int64 chunk_size = -1)
const;
73 void removeTempFile();
78 myName.makeSentinel();
79 myContentType.makeSentinel();
81 myInMemoryValue.clear();
82 myTempFileName.makeSentinel();
89 return myName.isSentinel();
124 void convertInMemoryToStorage();
151 static const bool clearNeedsDestruction =
false;
155 #endif // __NET_HTTPUPLOADEDFILE_H__
GLuint const GLchar * name
SYS_FORCE_INLINE bool isInMemory() const
Is this file in memory or stored on disk.
static void clear(NET_HTTPUploadedFile &ufile)
static bool isClear(NET_HTTPUploadedFile &ufile)
SYS_FORCE_INLINE void makeSentinel()
void read(T &in, bool &v)
NET_HTTPUploadedFile & myFile
SYS_FORCE_INLINE const UT_StringHolder & contentType() const
The content type of the file.
const UT_StringHolder & fileLocation() const
SYS_FORCE_INLINE const UT_StringHolder & name() const
The name of the file found in the Content-Disposition header.
GLint GLenum GLsizei GLint GLsizei const void * data
static void clearConstruct(NET_HTTPUploadedFile *ufile)
GLuint GLsizei GLsizei * length
GLsizei const GLchar *const * string
Read data from an uploaded file.
NET_HTTPUploadedFile(SentinelType)
void write(T &out, bool v)
SYS_FORCE_INLINE int64 size() const
The size of the file.
SYS_FORCE_INLINE bool isSentinel() const