I was having a similar problem after changing to PHP 5 (I was using the @
upload method and it was deprecated, so I had to start using CURLFile
), and the solution to my problem was found in this stack.
Solution: curl upload won't work with relative paths, use the full path instead
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…