Ask a Question related to Macromedia ColdFusion, Design and Development.
-
_jt #1
Specify temp directory and file name for file uploads?
I'm interested in understanding how MX processes file uploads.
1) By default, uploaded files seem to be placed in the
[drive]:\CfusionMX\runtime\servers\default\server-inf\temp\wwwroot-tmp
directory. Can you specify a different upload directory?
2) MX seems to generate a random temporary file name, like "neotmp3122.tmp"
for uploaded files. Is it possible to specify the name of the temp file
used? I know that you can rename the file after it is uploaded, using
CFFILE, but is it possible to specify the temporary file name that is used
during the upload?
_jt Guest
-
Web File uploads
While trying to do a simple file upload via a web form, (enctype="multipart/form-data"), I've run into a problem that has me stymied. This is an... -
File Uploads
Hello You must use <form action="uploadItem.php" method="post" enctype="multipart/form-data"> gerwazy POLAND -
File uploads without saving file
I am running a system that takes a users file and uploads it to a blob. That worked flawlessly in Coldfusion 6.1 and 7. Now, I need to get the... -
PHP and file uploads
Hi All, Here's one thing that I don't know much about - file uploading. As part of my project, I will have to build a file manager of sorts -... -
Problems with File Uploads
Hello, I've written the following sourcecode: <form action="test.php" method="POST" enctype="multipart/form-data"> <input type="file"... -
MattRobertson #2
Re: Specify temp directory and file name for fileuploads?
You can't change any of these things, unless there's some hidden method of
digging into the system's config files.
Want to see something wild? Create the following file and name it
testupload.html. Note the extension.
Upload a nice big file. Something big enough that you can watch where it goes
on the server while its uploading. Despite the fact that the file is pure html
and has a .html extension, the file no longer goes to the Windows temp folder.
Its still being handled in the CF temp directory, where on completion of upload
its promptly deleted as you'd expect.
--Matt--
MSB Web Systems... [url]http://mysecretbase.com[/url]
"When in doubt, mumble. When in trouble, delegate. When in charge, ponder."
- Senator. David Boren
<html><head><title></title></head><body>
<form
action="testupload.html"
method="post"
enctype="multipart/form-data">
Source File Name:<BR>
<input
name="FileContents"
type="FILE"
size="45"><br>
<input
type="submit"
value="Upload File">
</form>
</body></html>
MattRobertson Guest
-
F-Rjoub #3
Re: Specify temp directory and file name for fileuploads?
Dear all
I am new quest in this forum .
I am asking about reading files in Coldfusion ,,
the problem is , I have application that create random files
with extension ( .info ), when I read the file it cannot read every thing in
the file , because the first line is too long , so I need the code in
coldfusion that read from a specific position in the file ,
is there a coldfusion code that do this ,,
any help will be appreciated ....
Thanks .
F-Rjoub Guest
-
michaelmuller #4
Re: Specify temp directory and file name for fileuploads?
Really? You can't change the temp dir? I'm building a site that will manage
semi-professional video. It's possible some users will upload multiple GB video
files, and if three people were to upload very large files at the same time
there exists the very real possibility that the drive will run out of space and
they'll receive an error. Other than putting the app server on a 120GB drive,
what else can I do to avoid this?
michaelmuller Guest



Reply With Quote

