Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2131
  • Last Modified:

Remove Image from Folder using Jquery

Hi,

I want to remove image from folder physically using Jquery / Javascript.

Please help me regarding this.
0
sachinjain_aspnet
Asked:
sachinjain_aspnet
  • 2
1 Solution
 
maeltarCommented:
Is the folder on a server or local drive ?

In fact it is not that relavant where the folder is, javascript is ran/run on the client, there fore all you could do would be to send an ajax request to the server to run some php that would remove the file, so really, you need a script to call a php script on the server that will delete the file.

If it is a local (on the client) folder that you need deleteing, then as far as I know it is not possible, could you imagine the security risks should that be possible...
0
 
sachinjain_aspnetAuthor Commented:
yes , if image is on Server , then we can not delete using Jquery ...
0
 
sachinjain_aspnetAuthor Commented:
since Jquery / Javascript run on Client Side.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now