Upload Large Files from URL using Cold Fusion
$10-30 USD
Thanh toán khi bàn giao
I allow my clients to upload pictures and videos. What happens is they are uploaded to a third party, and that third party sends me the URL of the file. I then do a CFHTTP to grab the file and copy it to my server, update database etc. I do so with this code:
<cfhttp throwonerror="false" url="#theurl#" method="get" getasbinary="yes" result="test">
<cfset filePath = "c:\websites\[login to view URL]\customers\#thefilename#">
<cffile action="write" file="#filePath#" output="#test.filecontent#">
Now this works beautifully on photos and any file that is not large. However, when someone uploads a video, etc. it fails every time and gives a error that says:
Error: Java heap space
[login to view URL]
I need someone to find a way to be able to pull a 250MB video for example from a url and be able to save it to my server etc, WITHOUT having the server crash.
Only reply if you KNOW how to solve this problem.
ID dự án: #9476510