Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-08-2011, 02:46 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 24
Iphonedeveloper87 is on a distinguished road
Default How to upload image to linux server using ASIHTTPRequest

Hi,

I have to upload image to a linux server using Iphone. I am new at this can some one guide how this can be accomplished. Thanks in advance.
Iphonedeveloper87 is offline   Reply With Quote
Old 01-08-2011, 03:31 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

Let me google that for you
__________________
dany_dev is offline   Reply With Quote
Old 01-08-2011, 04:03 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 24
Iphonedeveloper87 is on a distinguished road
Default

Quote:
Originally Posted by dany88 View Post
Thanks for the reply I did this previously I have got some sample but when i try to implement that I am getting EXC_BAD_ACCESS. I am putting some thing wrong url settings:

I have got url some thing like this https://50.22.abc.xyz:4643

4643 is the port

User name as : Root and some password

how to set in the url string

Last edited by Iphonedeveloper87; 01-08-2011 at 04:06 AM.
Iphonedeveloper87 is offline   Reply With Quote
Old 01-08-2011, 04:07 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

first result using google with "ASIHTTPRequest username password" or "ASIHTTPRequest login"

ASIHTTPRequest example code - All-Seeing Interactive
__________________
dany_dev is offline   Reply With Quote
Old 01-08-2011, 04:43 AM   #5 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 24
Iphonedeveloper87 is on a distinguished road
Default

Quote:
Originally Posted by dany88 View Post
first result using google with "ASIHTTPRequest username password" or "ASIHTTPRequest login"

ASIHTTPRequest example code - All-Seeing Interactive
Hi,
sorry for bothering you once again, If you have the time can you guess where I am getting it wrong. I have written below code in ViewdidLoad

Code:
networkQueue = [[ASINetworkQueue queue] retain];
	
	NSURL *url = [NSURL URLWithString:@"https://50.22.***.194"];
	request = [ASIFormDataRequest requestWithURL:url];
	// [request setUseKeychainPersistence:YES];
	[request setUsername:@"root"];
	[request setPassword:@"1234"];
while logging into same server, using file zilla I have to enter details some thing like this :

URl: sftp://50.22.***.194
Username : root
Password : 1234
Port : 22
Iphonedeveloper87 is offline   Reply With Quote
Old 01-08-2011, 05:00 AM   #6 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

i'm not sure if asihttprequest support ftp (and i don't understand if you are trying to load an ftp or no because you speak about a ftp but use a https link), and if it is a ftp, are you sure that you really want that user upload directly on your ftp? . Maybe what you want is that user use a php script to upload his image.

However what i would try

Code:
NSURL *url = [NSURL URLWithString:@"https://50.22.***.194:22"];

NSURL *url = [NSURL URLWithString:@"https://username:password@50.22.***.194:22"];
and i would try to change "https" to "http" and to "ftp" and to "ftps"
__________________
dany_dev is offline   Reply With Quote
Old 09-08-2011, 05:34 AM   #7 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 97
iphone.savvy is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
i'm not sure if asihttprequest support ftp (and i don't understand if you are trying to load an ftp or no because you speak about a ftp but use a https link), and if it is a ftp, are you sure that you really want that user upload directly on your ftp? . Maybe what you want is that user use a php script to upload his image.

However what i would try

Code:
NSURL *url = [NSURL URLWithString:@"https://50.22.***.194:22"];

NSURL *url = [NSURL URLWithString:@"https://username:password@50.22.***.194:22"];
and i would try to change "https" to "http" and to "ftp" and to "ftps"


Hi Dany the above url pattern doesn't work , how we can mention user id and password in the url?
iphone.savvy is offline   Reply With Quote
Reply

Bookmarks

Tags
asihttprequest, upload

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 364
7 members and 357 guests
blueorb, fredidf, iAppDeveloper, iGamesDev, mottdog, sacha1996, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,667
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, host number one
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0