Jump to content

Uploading Of Images Failing On Edit Page


blue-genie

Recommended Posts

I'm trying to extend some code generator code.

in my add function i'm adding a url in my database, and then doing a file (thumbnail) upload to that location.

 

now i have an edit page to allow the user to change the thumbnail.

so i have code to display the previous file, then some code to locate a new file.

 

but the file is not being updated, and the code that is actually going into the database is incorrect.

 

i've attached 2 files.

 

I've commented random bits out to try different things, if someone can point out what I've done wrong, I'll be very grateful.

thanks.

newsfeed_edit_func.php

newsfeed_edit.php

Link to comment
Share on other sites

Ok so some general advice here, no one really wants to look through 1000's of lines of code, especially attached as files to locate your issue. More than likely, why no one has replied yet. A better way to go about this is post the relevant sections of the code, IE the file upload code and the database insertion code and then add to it when people request more specific information, such as your form code etc.

 

I did take a glance at it, but a 23K file really just turns me off. I understand that you are not sure where it is failing and hence why you posted the whole thing. I also understand that it is semi poorly written, given that the whole thing is in one long function. If you can narrow it down and post the relevant code inline on this forum using the code tags, that would be awesome and would most likely yield you replies and help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.