Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues in configuring Tusd Server #61

Closed
smitasigma opened this issue Sep 8, 2016 · 11 comments
Closed

Issues in configuring Tusd Server #61

smitasigma opened this issue Sep 8, 2016 · 11 comments

Comments

@smitasigma
Copy link

Hi,

I want to use resumable upload functionality with PHP server to make it work over server, there are few things need like below -

  1. tusd server - Uploaded files will be saved over tusd server(it will be endpoint of the tusd client, if i'm not wrong.)
  2. tusd client - From where user can upload files, abort the upload, resume the uploads.

I have configured tusd client but when installing/configuring tusd server in my local machine, it is not working as it is giving error when I'm trying to run main.go using below command -
go run cmd/tusd/main.go

Please try to help me out to solve the issue.

Thanks!

@Acconut
Copy link
Member

Acconut commented Sep 8, 2016

Would you be so kind and tell us the exact error message or we won't be able to help you.

@smitasigma
Copy link
Author

tusd-error

This is error we are getting while installinh tusd server

@Acconut
Copy link
Member

Acconut commented Sep 8, 2016

It looks like the dependencies were not properly installed but that's not your fault since the README is outdated on this matter. Please run go get ./... in the directory in which you downloaded tusd (in your case probably, P:\xmapp\htdocs\tusd). This will fetch all needed dependencies which may take a bit. After this, you should be able to continue with tusd. Please report back whether this works for you.

@smitasigma
Copy link
Author

Thank you for your quick reply, but still the same.

What I did is -

  1. I have installed Go & followed method explained here http://www.wadewegner.com/2014/12/easy-go-programming-setup-for-windows/
  2. Installed Github as well.
  3. Downloaded tusd server & copied source in F:/xampp/htdocs/tusd folder
  4. Now opened command prompt & tried to run command as per the screenshot attached & you can see errors.

Please try to help me out.

Thanks!
gorun

@Acconut
Copy link
Member

Acconut commented Sep 9, 2016

Thank you for your quick reply, but still the same.

What was the output of the command, I told you? Did it succeed or fail?

@kvz
Copy link
Member

kvz commented Sep 9, 2016

Any reason why you wouldn't use a binary release, instead of trying to get a go build environment to work? Are you planning to make changes to the code? If not, just download the binary for windows and run it I would suggest?

@smitasigma
Copy link
Author

@Acconut it failed, it is not working. :(

@smitasigma
Copy link
Author

@kvz What do you mean by "If not, just download the binary for windows and run it" From where I can download it?

@kvz
Copy link
Member

kvz commented Sep 9, 2016

I'm also a bit confused how you want to interact with it. Typically you'll want a tus client such as the tus-js-client or Uppy, to upload to a server such as tusd. This is unrelated from PHP. If you want your PHP server to accept the uploads, that is possible too though, via on of the community projects. In that case you won't have to deal with a tusd server at all. However, these projects are typically less mature, and you have to consider if they support tus version v1.0.0 or higher.

it is not working. :(

without any ouput or additional information, unfortunately that effectively puts us all in a dead-end street

From where I can download it?

From the releases link in github: https://github.com/tus/tusd/releases

@smitasigma
Copy link
Author

What I want to do is -

I'm building on application in PHP in which I need to add resumable file upload functionality. like if user visits my site & he/she can upload n number files with resume/abort functionality.

Thanks!

@Acconut
Copy link
Member

Acconut commented Sep 9, 2016

Yes, we know that. Since you are not able to run tusd from source code (because you do not provide us with the information needed to help you there), we recommend you to download a prebuilt version of tusd. Those can be found here: https://github.com/tus/tusd/releases. The tusd_windows_amd64.zip and tusd_windows_386.zip links will provide with ZIP-archives which contain an EXE file which you can simply execute without any hassle. Please do exactly this and then tell us how far you got in detail. If you do not follow the advice we outline here, we cannot help you.

@Acconut Acconut closed this as completed Jan 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants