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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:25:18+00:00 2026-06-12T02:25:18+00:00

In textbox, I enter a url and download it to a specific path and

  • 0

In textbox, I enter a url and download it to a specific path and to store that download file I have to give specific location and filename of that file before.that is working but problem comes when I download any other format (eg .mp4,.avi) It will store as .mp3

NSString * URL =Textbox.text;
dest_path=[NSHomeDirectory() stringByAppending:@"/Documents/file.mp3"];
//to download url and save to specific path
download=[Downloader Download:URL withTargetPath:dest_path withDelagate:self];

I want that whenever I download It should be save from there format .like If i download .mp4 file .it should be save with .mp4 format.please suggest some code..

  • 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-12T02:25:20+00:00Added an answer on June 12, 2026 at 2:25 am
     NSURL *url=[NSURL URLWithString:@"/Documents/file.mp3"];
    
    
    
        NSURLRequest *req=[NSURLRequest requestWithURL:url cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:120];
    
        NSURLConnection *con=[[NSURLConnection alloc] initWithRequest:req delegate:self startImmediately:YES];
    
        if(con){
            receivedData = [NSMutableData data] ;
        } else {
    
        } 
    

    Use :

    NSURLConnectionDataDelegate,NSURLConnectionDelegate
    

    methods

    like :

    - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {}
    - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)d{}
    - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error {}
    - (void)connectionDidFinishLoading:(NSURLConnection *)connection {}
    - (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge {}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a textbox where user will enter the url of the image :
I have a TextBox in a Windows Form that allows a user to enter
I have a textbox where the user can enter URL and button named Check
I have a form with a textbox on it that is used to enter
i have a textbox and when i enter 0 in it, it should reset
I have a textbox where users can enter the link to a YouTube video.
In a textbox user can enter date. In OnChange event I am trying to
How to catch return hit (enter) on TextBox? The following does not work. I
Pressing enter inside a textbox refreshes the whole page in Google Chrome. please help
I've got a textbox being used to enter a password inside a wizard control.

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.