but instead of saving it on www/upload it saves in laravel/public/upload so when I try to call my image mysite.com/upload/image.png it doens't work cause it can't find the image
@D9705996 - It gives me an file_put_contents(www/upload/projeto/capa-c838d46888f9c95d82ee7963c3aff5685bec70143fc62.png): failed to open stream: No such file or directory I think it tries to find a www folder inside the laravel folder, and can't
@JLRDW - But my upload is from a base64, not a file, cause the user can crop the image before upload, and when I use asset it calls the wrong folder, it calls the folder from www instead of the laravel
And Where do I place the code for htaccess? in laravel, laravel/public or www?
@JLRDW - I don't store the image in the database, the user crops the image than it sends the base64 in the request and I convert it to a file, save on a folder and store the filename in the database
@SNAPEY - The problem is, my public_path aims to the laravel/public folder on root, and the asset generate an URL and this URL aims to www so the problem is when I hit http://engenhariamrc.com.br/upload it should be hitting laravel/public/upload but it hits www/upload
@SNAPEY - It worked, yaaay, but instead of ../www I used /../www, but now, every time I update a file in the public folder I should update the public folder of outside the project (~/www) and the other files in the normal folder (~/laravel) is it right?