Hi,<br>
<br>
I am working on a KDE application to upload images to Coppermine. I got
the HTTP part working correctly and it is posting the data to gallery.<br>
But the image file is not getting uploaded. I get only 4 bytes in the uploaded file on the server.<br>
Looks like the file is not being read properly at my end.<br>
<br>
This is what I am doing to read the file: <br>
<br>
QFile userfile(fileName);<br>
&nbsp;&nbsp;&nbsp; if ( !userfile.open(IO_ReadOnly) ) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QMessageBox::information(this, tr(&quot;HTTP&quot;),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tr(&quot;Unable to open the file %1: %2.&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .arg(openFilesPath).arg(userfile.errorString()));<br>
&nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; fileSize = userfile.size();<br>
&nbsp;&nbsp;&nbsp; userfile.readAll();<br clear="all"><br>Thanks in advance for your help.<br>
<br>
Regards,<br>
<br>
-- <br>Aditya<br>=============================================================<br>PHP Applications for E-Biz: <a href="http://www.sanisoft.com">http://www.sanisoft.com</a><br>Coppermine Picture Gallery: <a href="http://coppermine.sf.net">
http://coppermine.sf.net</a><br>=============================================================