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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:53:41+00:00 2026-05-19T09:53:41+00:00

For my CMS I want users to be able to upload pictures which connect

  • 0

For my CMS I want users to be able to upload pictures which connect to a product. This all goes well until someone wants to upload a picture when creating a new record.

The problem here is that every product has a GUID (next to the ProductID (PK)) and will be created when the product is saved for the first time. I’m uploading my images trough a webservice with Uploadify jquery plugin so it’s all in an ajax based way. The image uploader however needs to know the GUID to store it in the right directory.

My temporary fix was to just let the user save the product before uploading so the GUID is known but it’s not very user friendly and I’m sure there would be a better way but I cannot find a satisfying one myself.

This is the only option which I could come up with which is kinda ok but maybe I’m missing something completely:

  • Create a GUID without saving the product, so the image can be uploaded and the product with the GUID can be saved afterwards. But what if the user navigates away after uploading? I could maybe create a scheduled task to delete those orphant images

Has anyone dealt with similar scenarios? I’m very interested in your opions about his matter since this functionality will be used in multiple sections in my CMS.

Thanks for your time!

Kind regards,
Mark

  • 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-05-19T09:53:42+00:00Added an answer on May 19, 2026 at 9:53 am

    You mostly answered your question by yourself.

    The key are temporary files. Here is a little smarter method: save image in a temporary folder and remember the image name in Session object. If the user navigates away, in the Session_End method of Global.asax, delete those images (better said garbage-collect them).

    If the user saves the product, permanently store the images and name them accordingly!!

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

Sidebar

Related Questions

I'm working on my CMS and I want it to log activities by users
I'm building a CMS and I want to be able to insert stuff in
I am writing a pretty simple CMS on GAE, and I want my users
I am looking for a CMS- which would allow unregistered users to submit content.
I'm developing a cms and I want the designer to be able to call
Well with my CMS I am building I was able to purchase a really
Here is my problem. I'm working within a CMS and users are able to
I'm looking for a CMS for our extranet. We need users to be able
I'm looking for a CMS designed to introduce software. I want be able to
I am looking for a clean, well-built CMS. I want to migrate a number

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.