Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9277039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:00:15+00:00 2026-06-18T17:00:15+00:00

I just knew that upload.php file will run for each uploaded file. So when

  • 0

I just knew that upload.php file will run for each uploaded file. So when if there are 5 files, the upload.php will run 5 times right?

I need to insert a record into mysql ‘album’ table so that I can get the albumid to be inserted into the ‘photos’ table.

My idea is to run a script before the upload starts.

How is that possible with plupload?
Or any different idea guys?

Or to the root question, is there any way to specify the album for the uploaded photos?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T17:00:18+00:00Added an answer on June 18, 2026 at 5:00 pm

    I guess you could :

    1. have a client-side variable albumId, default empty
    2. bind to the BeforeUpload uploader event
    3. in BeforeUpload handler, see if AlbumId is set. If not, perform a synchronous ajax call to create an album and retrieve its albumId, you will put in variable albumId
    4. still in BeforeUplad handler, add the albumId in the queryParameters : upldr.settings.url = upldr.settings.url + '&albumId=' + albumId

    I guess it should work, without having to use any kind of locking mechanism on albumId.

    Hope this will help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are just two forms i knew to retrieve resource values in xml files:
There is a term for this that I just cannot think of, and I'm
I need to provide an unshared upload using php on apache on linux. I
I have a Form that I am using to receive an uploaded .csv file,
I was just doing some research on RedBlack Tree. I knew that SortedSet class
I was just wondering if any one knew of any good beginner tutorials for
just wondering if there is a way to reduce the amount of code needed
I just have learnt the hard way that standard android LVL + proguard does
I knew that I could get unicode characters using the escape sequence, like this:
I'm developing an ASP .NET web site that will allow users to view and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.