Outputting a file
Posted: Tue Dec 19, 2006 6:07 pm
Hello all,
In my email script I am currently working on handling attachments. I got everything working and now I need to focus on the downloading of the attachment. Currently when the email is recieved the attachment is grabbed and saved to the local system with a completely random name and a .txt extension (such as "hsf2439.rar.txt") for security. I also insert the attachment details into a database including the random name of the attachment, the original name of the attachment, and the extension of the attachment.
Now, what I want to do is output this extension using the original file name and the original extension (rather than .rar.txt or what ever it may be). Is this possible, and if so how? Thanks in advanced.
Cheers,
- Josh
In my email script I am currently working on handling attachments. I got everything working and now I need to focus on the downloading of the attachment. Currently when the email is recieved the attachment is grabbed and saved to the local system with a completely random name and a .txt extension (such as "hsf2439.rar.txt") for security. I also insert the attachment details into a database including the random name of the attachment, the original name of the attachment, and the extension of the attachment.
Now, what I want to do is output this extension using the original file name and the original extension (rather than .rar.txt or what ever it may be). Is this possible, and if so how? Thanks in advanced.
Cheers,
- Josh