I follow the docs of api for phonegap Build,creat a new app,but it display failed to build app

  • 1
  • Question
  • Updated 9 years ago
  • Answered
{"error":"Failed to build app"}
this is error code of callback
question the user info is need?
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

301 Moved Permanently

Moved Permanently


The document has moved here.



Apache/2.2.14 (Ubuntu) Server at build.phonegap.com Port 80


This reply was created from a merged topic originally titled
curl callback this display help.
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
We need more information to know what went wrong. What was the exact http post you made?
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes
form name="creat" method="post" action="https://build.phonegap.com/api/v0/apps"
input name="data" type="hidden" value="{"title":"test23123"}"
input name="file" type="hidden" value="/Users/Spolong/Desktop/index.html"
input type="submit"
/form
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
You can't send a file from a hidden form field. You have to send it through a type=file field.
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes
sorry,I use input type="file" first.
But it cann't work.So I test this.
can you give me a correct example in form,thanks very much
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
The PhoneGap Build API is designed to be accessed by RESTful clients - the examples in the documentation show how it can be used. I'm not sure why you would use an HTML form - there's an HTML form right there on the website.
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes
I need a web UI to upload www.zip,
Please tell me the URL of HTML form.
3q very much
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
https://build.phonegap.com/apps

If you're building a web UI, upload the file to your server, then use the REST API to create an app from there.
Photo of spring_polo

spring_polo

  • 6 Posts
  • 0 Reply Likes
3q very much,I'am ok by your notes.