-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHp-mvc-rest-api #1
Comments
Ok, I will fix it until tomorrow. |
Thanks for your reply
I got the output .. I changed the regular expresssion in dispatch method.
Thank you
…On Thu, Sep 12, 2019 at 7:37 PM Mohammad Rahmani ***@***.***> wrote:
Ok, I will fix it until tomorrow.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKEADA5CCW6Z7UYDNU3QJJEITA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SAJFI#issuecomment-530842773>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKAATUNT3VKTSC7R4GTQJJEITANCNFSM4IWDDMNA>
.
|
Your welcome, I think it does not need to change the regular expression. |
How can i upload image data along with request body in post method. Can you
give any example
Thanks in advance
…On Fri, Sep 13, 2019 at 12:30 PM Mohammad Rahmani ***@***.***> wrote:
Closed #1 <#1>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKGY5CTJ5MP4N4CVVNLQJM3ADA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTTL26GA#event-2631380760>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKDX3JDQPZPU7ISHWETQJM3ADANCNFSM4IWDDMNA>
.
|
It's simple but you should know how an upload file does it works in PHP. There is an example in the link above and I have also a global file variable, you can access it with You can write it down and if you have any problem let me know. |
Please send a simple example if you have.. Post requests are always showing
route not found ..
Thanks
…On Fri, Sep 13, 2019 at 12:51 PM Mohammad Rahmani ***@***.***> wrote:
It's simple but you should know how an upload file does it works in PHP.
https://www.tutorialspoint.com/php/php_file_uploading.htm
There is an example in the link above and I have also a global file
variable, you can access it with
$this->request->files('file-request-name'); in place of $_FILES[] in the
Controllers file.
You can write it down and if you have any problem let me know.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKBQ5PKAWYI3NZIILH3QJM5OLA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UGDLA#issuecomment-531128748>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKBH74L7TMF3NDAPSO3QJM5OLANCNFSM4IWDDMNA>
.
|
I too got upload image . But My Requirement is different . I have a form
contains so many fields along with image. How to post the data and image.
Thanks & Regards
…On Fri, Sep 13, 2019 at 2:50 PM Mohammad Rahmani ***@***.***> wrote:
I make it for you, you can check it out.
send a post request to '/upload' with an image file.
I attached an image from the postman request.
[image: Screen Shot 2019-09-13 at 1 49 34 PM]
<https://user-images.githubusercontent.com/17293422/64851821-6b163280-d62d-11e9-997d-ae32c18b3ade.png>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKF2SA42W2ISBH26TR3QJNLPDA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UPIKI#issuecomment-531166249>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKGRNFLFOFWMXOEHI23QJNLPDANCNFSM4IWDDMNA>
.
|
It's so easy bro. And if I make everything for you, you can't learn anything, so trying a little more. |
I have tried ... see the following attachment..
[image: image.png]
…On Fri, Sep 13, 2019 at 4:24 PM Mohammad Rahmani ***@***.***> wrote:
It's so easy bro.
You can get all inputs with
$this->request->post('variable_name_you_send_from_ui');
or
$this->request->get('variable_name_you_send_from_ui');
or
$this->request->files['variable_name_you_send_from_ui'];
And if I make everything for you, you can't learn anything, so trying a
little more.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKETC7266OFCWT2FBNLQJNWNRA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6UVXTY#issuecomment-531192783>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKGAAS6P2ASAFCGXI63QJNWNRANCNFSM4IWDDMNA>
.
|
Sorry, your attachment does not show for me. |
$this->request->post[variable] shows an error of undefined property
…On Fri, Sep 13, 2019, 6:50 PM Mohammad Rahmani ***@***.***> wrote:
Sorry, your attachment does not show for me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKBJBDZ2F33TJTIAUHTQJOHRHA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6U7ZEQ#issuecomment-531233938>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKBAJBK3F3RFL5FQTGLQJOHRHANCNFSM4IWDDMNA>
.
|
Use like this: $this->request->post('variable') For more information please look at the Request.php |
D
…On Sat, Sep 14, 2019 at 9:58 AM Mohammad Rahmani ***@***.***> wrote:
Use like this: $this->request->post('variable')
not that becuse the "post" is a function not an array.
For more information please look at the Request.php
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFCSMKE3SSK32VRTZYBSPYLQJRR5RA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WUAIQ#issuecomment-531447842>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFCSMKHJANGAYSQ62GDJSVLQJRR5RANCNFSM4IWDDMNA>
.
|
As per your suggestion I have used post as function .. I got the output if
I might not using the basin authentication . But i use basic authentication
then all variables are showing as NULL. Can you suggest me.
On Mon, Sep 16, 2019 at 11:19 AM Sundar K, Mr. Syam <
syamasundararao@pvpsiddhartha.ac.in> wrote:
… D
On Sat, Sep 14, 2019 at 9:58 AM Mohammad Rahmani ***@***.***>
wrote:
> Use like this: $this->request->post('variable')
> not that becuse the "post" is a function not an array.
>
> For more information please look at the Request.php
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1?email_source=notifications&email_token=AFCSMKE3SSK32VRTZYBSPYLQJRR5RA5CNFSM4IWDDMNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WUAIQ#issuecomment-531447842>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AFCSMKHJANGAYSQ62GDJSVLQJRR5RANCNFSM4IWDDMNA>
> .
>
|
Sorry, I did not use with authentication, but if you have some error or issue, send them to me I see them and fix it or implement to this project. |
I liked your project a lot.. But I got some problem while accessing an URL which contains parameters with spaces like /fetch-name/syam Sundararao .
If I gave this I got route not found...
Please suggest me.. I studied your dispatch code. But unable to fix it...
The text was updated successfully, but these errors were encountered: