What happened to the TMP environment variable?
You are probably thinking of TMPDIR. This variable shall represent a pathname of a directory made available for programs that need a place to create temporary files.
You are probably thinking of TMPDIR. This variable shall represent a pathname of a directory made available for programs that need a place to create temporary files.
You should edit your my.cnf tmpdir = /whatewer/you/want and after that restart mysql P.S. Don’t forget give write permissions to /whatewer/you/want for mysql user
Instead of rake tmp:cache:clear run the following command in console Rails.cache.clear This will clear the cache from whatever cache store you are using config.cache_store = :file_store # or config.cache_store = :mem_cache_store
You’re going to want to close the temp file after writing to it. Just add a t.close to the end. I bet the file has buffered output.
Files uploaded through POST are deleted right after php script finishes its execution. According to php.net: “The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.”