@@ -1062,8 +1072,13 @@ int sendImage(struct file_set *fset, int bufferImageData, int use_Exif, int sav
...
@@ -1062,8 +1072,13 @@ int sendImage(struct file_set *fset, int bufferImageData, int use_Exif, int sav
#define COLORMODE_MONO4 14 // monochrome, 4 blocks (but still with 2x2 macroblocks)
#define COLORMODE_MONO4 14 // monochrome, 4 blocks (but still with 2x2 macroblocks)
*/
*/
printf("Content-Type: image/%s\r\n",mime_type);
printf("Content-Type: image/%s\r\n",mime_type);
if(saveImage)printf("Content-Disposition: attachment; filename=\"elphelimg_%ld.%s\"\r\n",frame_params.timestamp_sec,extension);// does not open, asks for filename to save
if(saveImage){
elseprintf("Content-Disposition: inline; filename=\"elphelimg_%ld.%s\"\r\n",frame_params.timestamp_sec,extension);// opens in browser, asks to save on right-click
printf("Content-Disposition: attachment; filename=\"%s%ld_%06d_%d.%s\"\r\n",// does not open, asks for filename to save
if(bufferImageData){/* Buffer the whole file before sending over the network to make sure it will not be corrupted if the circular buffer will be overrun) */
if(bufferImageData){/* Buffer the whole file before sending over the network to make sure it will not be corrupted if the circular buffer will be overrun) */