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 8142229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:44:49+00:00 2026-06-06T12:44:49+00:00

I am using the BlueImp jQuery-file-upload to upload files to server. The upload accounts

  • 0

I am using the BlueImp jQuery-file-upload to upload files to server. The upload accounts for files that may have the same name appending (1),(2)…etc. The issue that I am having I am sure results from the following code

$('#albumCover.fileupload').bind('fileuploaddone', function(e,data) {

        //Loop through each uploaded file and return object
        $.each(data.files, function (index, file) {
            var filename = file.name;
            $.ajax({ 
                type: "POST",
                url: "../albumUploader/queries/albumCover.php",
                data: {file: filename}
            });
        });
}

I am posting to albumCover.php whatever filename I am selecting, so if it happens to be a duplicate of an existing file, the DB will have duplicate “image.jpg”, while the uploader is correctly uploading the files appending (1),(2) etc.

Is anyone familiar how I pass the filename that the uploader is correctly labeling the uploaded files. I should be sending to albumCover.php, and is the POST type the correct type to be using in this situation.

  • 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-06T12:44:51+00:00Added an answer on June 6, 2026 at 12:44 pm

    Hope this helps someone else. Here is where I found my rescource:
    https://github.com/blueimp/jQuery-File-Upload/issues/641

       $('#albumCover.fileupload').bind('fileuploaddone', function(e,data) {
        var filename = data.result[0].name;
                $.ajax({ 
                    type: "POST",
                    url: "../albumUploader/queries/albumCover.php",
                    data: {file: filename}
                });
        }
    

    the data.result[0].name returns the amended file name

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

Sidebar

Related Questions

I'm using the following jQuery ( https://github.com/blueimp/jQuery-File-Upload ) script to upload files. This script
I'm using blueimp JQuery file upload script to fancy the uploading of files. You
All, I'm using the following jQuery plugin: https://github.com/blueimp/jQuery-File-Upload You can see that in the
I am using Blueimp Jquery File Upload plugin to upload files asynchronously. It works
I'm using: https://github.com/blueimp/jQuery-File-Upload Basically, I need to be able to save the current done
I'm using https://github.com/blueimp/jQuery-File-Upload and I was able to upload and save the file to
I'm using the following file uploader with Rails 3: https://github.com/blueimp/jQuery-File-Upload The uploader on the
Greetings, I'm using https://github.com/blueimp/jQuery-File-Upload (downloaded the version as of 5/21/2011) along with ASP.NET MVC3.
jQuery File Uploader: https://github.com/blueimp/jQuery-File-Upload I'm using the plugin above. How in jQuery can I
I am using the blueimp jQuery file upload plug-in located here https://github.com/blueimp/jQuery-File-Upload and according

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.