0

I'm using ckfinder with ckeditor in asp.net mvc 5 project. I want to rename images before upload, such as Image.name = DateTime.Now + Guid.NewGuid().

How to do this?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195

2 Answers2

0

I had the same problem and i figured out how to solve it. I answered my own question here: CKFinder. Rename uploaded files

Community
  • 1
  • 1
Sam Alekseev
  • 2,281
  • 2
  • 19
  • 28
-1

Uploaded files are delivered to your controller actions either as HttpPostFiledBase someName, or as a member of Request.Files, your app code will be responsible for looping through these uploads, picking a file name for them, and saving them.

Can you clarify where you are having difficulty?

Nathan Taylor
  • 24,423
  • 19
  • 99
  • 156