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
  • 441,113
  • 110
  • 1,021
  • 1,148

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,031
  • 2
  • 18
  • 27
-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,120
  • 18
  • 94
  • 153