3
I have a PHP system that I developed and put online on my server at Digitalocean, the site has two parts, which visitors will access and the administration area where I manage this site and put the content to which users will have access.
I left the administration area on my local machine for security reasons since only I could access it and I would have no reason to askla online, I made the connection to the database that is in Digitalocean with the admin area that is on my local machine and everything works perfectly, only that has a problem that I do not know how to solve.
I need when I register information to send images of the items I register in the system, then that’s the problem, I don’t know how to do, and to make safely posting these images from my local machine to my Linux server at Digitalocean, currently I send these images commiting to my local Git repository to my remote git server, which is extremely wrong and makes me have to commit at all times when I register new items simply so that images are sent.
How can I upload these images using PHP language securely to my remote server?
NOTE: My server at Digitalocean I only access it via SSH from my linux terminal on the local machine, it would have to be a way to allow this upload with an active SSH server on the remote server
Does it have any file storage service, just like Amazon has S3?? If so, it must have some documentation on how to use the API to upload.
– William Aparecido Brandino
you have tried with Curl?
– wwwjsw
I honestly can’t answer you, see, when I upload via git the clays are sent to my DO server, what I want is to do this but n via GIT and yes via form in my administration area on my local machine and that this file goes to a folder there on my machine like any other file, are just JPG images
– MarcosJunior
Possible duplicate of Upload to another server error
– ShutUpMagda
this example that you cited n applies to my case, I have a linux server that can only be accessed via SSH, this solution that was presented there in this post does not work with me, I tested it, if you test and get a different result please share here
– MarcosJunior