<div dir="ltr">It's not controlled in the .map file, it's in the HTML request. If you're making WMS requests make sure your url contains:<div><span style="color:rgb(27,27,31);font-family:"Google Sans Text","Google Sans",system-ui,sans-serif;font-size:12px">?REQUEST=GetMap&SERVICE=WMS&VERSION=1.3.0</span></div><div><span style="color:rgb(27,27,31);font-family:"Google Sans Text","Google Sans",system-ui,sans-serif;font-size:12px">or if you're using the legacy mapserv requests:</span></div><div><span style="color:rgb(27,27,31);font-family:"Google Sans Text","Google Sans",system-ui,sans-serif;font-size:12px">?mode=map</span></div><div><span style="color:rgb(27,27,31);font-family:"Google Sans Text","Google Sans",system-ui,sans-serif;font-size:12px">Either of those will prevent mapserv from writing the image file to your server and pass the image directly back to your app.</span></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Mar 18, 2025 at 9:07 AM Rob Dennett via MapServer-users <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-1158972035072024710">




<div dir="ltr">
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am trying to use MapCache to replace the built-in caching mechanism of MapServer and when testing, I am seeing the following in the error log:<br>
<br>
msSaveImage(): Unable to access file. Failed to create output file (/myFolder/AREATYPE1742226286187.png)</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I expect that this is because of a permissions issue with the directory, but I don't want MapServer to try and save the tile at all.  I assume this action is controlled or could be overwritten by something in the .map file.  Is that accurate?  If so, what is
 it?<br>
<br>
In WEB, I have the IMAGEPATH and IMAGEURL lines commented out, FYI.</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Rob</div>
</div>

_______________________________________________<br>
MapServer-users mailing list<br>
<a href="mailto:MapServer-users@lists.osgeo.org" target="_blank">MapServer-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</div></blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr">Richard W. Greenwood<br><a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a></div></div>