Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'image upload'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 2 results

  1. How can I insert upload image of a user into database while registering and preview it in view_user.php
  2. I am new to Yii framework and reading "The Yii book" to understand Yii. The book is really excellent and I am enjoying it. In my project I have a controller called "UserController" and also have the associated model "User" and related View files created using Gii. On the "/user/create" page I am uploading user profile picture. Its all working fine from the create page. However, when I try to upload the picture using REST Client (I am using Chrome - Advanced REST Client) the picture is unable to upload. If I upload all the other text (e.g email, firstname etc) details except the picture on the REST Client form then the user is created successfully but when I try to upload a picture along with the rest of the details then it fails. Actually, when I tried to debug then I came to know that while submitting the form with image from the REST client, it enters the "public function actionCreate()" function but does not go into the if(isset($_POST['User'])) { // code} condition. However, it works successfully if I upload image and details from the "/user/create" page. Once again, I would like to say that the image gets uploaded successfully from the actual webpage created using Yii but the image cannot be uploaded using the REST client inspite of setting Content-type as "multipart/form-data". Thanks Prazi
×
×
  • Create New...