[GH-ISSUE #18] Upload does not work when upload code is set #13

Closed
opened 2026-02-25 23:40:24 +03:00 by kerem · 3 comments
Owner

Originally created by @quarks3k on GitHub (Oct 23, 2016).
Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/18

  1. Set upload code
  2. try to upload image from form
  3. it says invalid upload code always.
Originally created by @quarks3k on GitHub (Oct 23, 2016). Original GitHub issue: https://github.com/HaschekSolutions/pictshare/issues/18 1. Set upload code 2. try to upload image from form 3. it says invalid upload code always.
kerem closed this issue 2026-02-25 23:40:24 +03:00
Author
Owner

@geek-at commented on GitHub (Oct 23, 2016):

Can't reproduce. Works for me.

What precise upload code did you use?

Could it be that you're mixing up MASTER_DELETE_CODE and UPLOAD_CODE?

<!-- gh-comment-id:255576947 --> @geek-at commented on GitHub (Oct 23, 2016): Can't reproduce. Works for me. What precise upload code did you use? Could it be that you're mixing up MASTER_DELETE_CODE and UPLOAD_CODE?
Author
Owner

@quarks3k commented on GitHub (Oct 23, 2016):

problem is in processSingleUpload()
code is
if(UPLOAD_CODE && !$pm->uploadCodeExists($_REQUEST['upload_code']))

which should be
if(UPLOAD_CODE && !$this->uploadCodeExists($_REQUEST['upload_code']))

after modification upload works well.

<!-- gh-comment-id:255590928 --> @quarks3k commented on GitHub (Oct 23, 2016): problem is in processSingleUpload() code is `if(UPLOAD_CODE && !$pm->uploadCodeExists($_REQUEST['upload_code'])) ` which should be `if(UPLOAD_CODE && !$this->uploadCodeExists($_REQUEST['upload_code']))` after modification upload works well.
Author
Owner

@geek-at commented on GitHub (Oct 23, 2016):

thx

<!-- gh-comment-id:255591086 --> @geek-at commented on GitHub (Oct 23, 2016): thx
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pictshare#13
No description provided.