upload image to server using it path in my comptuer.

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
kamel18
New php-forum User
New php-forum User
Posts: 3
Joined: Sat Apr 28, 2018 1:21 pm

Sat Apr 28, 2018 1:27 pm

Hi guys,

I would like to upload an image in my computer to a server via it path, for exemple, I will send it path (C:/image/image.jpeg) as a post request and then it will upload automatically to my server, is that possible and if so how?
NB: for now I can do it but I need to chose the file and then use the submit bouton in a html page.
Thanks you very much.

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 719
Joined: Mon Feb 22, 2016 5:52 pm

Sun Apr 29, 2018 12:42 am

If I understand the question correctly:

You want to send pictures from your PC to your Server, you can use software like FileZilla or there are others; but essentially it's the same way that you transfer your scripts?

If this is not what you want to do, you'll need to explain a little more clearly what it is you want to do.

kamel18
New php-forum User
New php-forum User
Posts: 3
Joined: Sat Apr 28, 2018 1:21 pm

Sun Apr 29, 2018 1:13 am

Hi,

Thanks for your reply, actuly I'm working on an app with c++, with curlib I would like to send the path of a file I would like to upload from my app to a Php page with post request and then that page will upload it to a server.

very sorry for not explaining my question well.

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 719
Joined: Mon Feb 22, 2016 5:52 pm

Sun Apr 29, 2018 2:03 am

Let me see if I have this correct (ignoring the process that you have written):

You have an app written in c++, you want to send a file using the app to a server.

kamel18
New php-forum User
New php-forum User
Posts: 3
Joined: Sat Apr 28, 2018 1:21 pm

Sun Apr 29, 2018 2:17 am

Thankx you again so much for your reply, Actually with my c++ app I send the path of the picture (c:/etc/etc.jpg) to a PHP page with post request, that I have done it, now I wanted to know if there's any way that makes me upload that file to my server using it path from the php page.

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 719
Joined: Mon Feb 22, 2016 5:52 pm

Sun Apr 29, 2018 7:41 am

How is it useful for your app? [to have the path of a file on a device]

This makes no sense to me, why don't you send the file from your app rather than the path?

Gaston44
New php-forum User
New php-forum User
Posts: 1
Joined: Sat May 12, 2018 12:59 pm

Sat May 12, 2018 1:01 pm

hyper wrote:
Sun Apr 29, 2018 12:42 am
If I understand the question correctly:

You want to send pictures from your PC to your Server, you can use software like FileZilla or there are others; but essentially it's the same way that you transfer your scripts? If this is not what you want to do, you'll need to explain a little more clearly what it is you want to do.
Thanks for tutos

Post Reply