Hi all,

I've got an app that receives weekly analytics reports from Google Analytics 
and posts them to a site.  The app is processing a couple dozen of these 
reports per week and the vast majority of them work just fine, but every week I 
have trouble with two.

The reports are sent from Google Analytics as PDF attachments to a mail 
message.  These messages are retrieved using CFPOP, and the attachments are 
saved to a temporary directory on my server.  The attachments are then uploaded 
to a site (and some other stuff gets added to a database etc...).  Once the 
PDFs are uploaded to the site, the attachments are deleted from my server.  
Every week, the PDF attachments for two of these reports end up saved in 
sub-directories and then my attempt to delete the original attachment fails 
(CFFILE action="delete").

Anyone have any idea why CFPOP would be creating and saving these attachments 
into subdirectories?  They're always named after the file -- so for example, if 
the report is called 
Analytics_www.example.com_20100614-20100620_(Weekly_Analytics_Report).pdf, the 
directory it's saved into is called Analytics_www.example.com/.  

It's CF 8 running on an Ubuntu install. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334691
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to