Thesis: Image Upload and Storage

Posted by on October 21, 2012 • Filed Under Programming, Web Development

After two days of stressing out about the profile image system implementation, I finally got it working. I was missing a piece of code that I thought I had written there and that’s why it wasn’t working, I didn’t notice it at first. When programming, it’s usually the tiniest/stupidest errors that are the most frustrating.

Thesis: Image Upload

This is a preview of how it’s working, I’m displaying the images uploaded for now while I test everything out. The image upload script makes two versions of the image. I set a maximum size for the file and create two proportional new sizes, a “big” one which is used for the user profile and sidebar avatar and a “small” one that will be used for status updates, comments, etc. Both image paths are saved to the database.

I also implemented the user profile system, if the user is logged in, you can see your own profile on “profile.php“, or by going to “profile.php?user=Your Username“, which you can also use to see other people’s profiles (even when you’re not logged in). I’m still thinking about rewriting the Apache server rules for that site so I can have something like “website.com/profile/username here“.

My first revision is this Friday and I think I have more than required for the appointment with the professor, let’s see how that goes.



5 Comments


  • Dante1704

    Oct 21, 2012

    Reply

    @_NicoleJ Awesome! =). Yo estoy nervioso por la revision esa, no se si tengo muy poco o que >.<!

  • avatar image

    Jessie

    Dec 04, 2012

    Reply

    I hope that the interview with your Professor goes well, and I cannot wait to see the finished product. Best of luck!

  • avatar image

    Kelly

    Dec 09, 2012

    Reply

    Ugh, I hate when that happens. You go nuts for a couple of days trying to figure what you did wrong in a code.

  • avatar image

    Carrie

    Dec 11, 2012

    Reply

    I'm a beginner web and graphic designer and I struggle with the designing and programming part, lol. I know there are some people who struggle much more than I do. I usually try to take it one day at a time. Learning something new and designing mock ups really help me a lot. I'm glad it's functioning for you! Way to go! :)

Post your comments