How to add a option to upload docx file to server - file-upload

I am building a website and i want to add an option for the user to upload the file and i will receive in my server and i tried some code on online but it didn't work but i need code
So , I Request anyone to help . I Appreciate Everyone who help me
Thank you
Neeraj

Related

Host Laravel Project in IIS 10 Server

I am hosting my Laravel project on IIS 10 server, everything was running well, but when I try on my API, I realise whenever my post request contains files, API will just return 500 Error, but without file is working, does anyone met this issue before?
Appreciate that, if you could share me and guide me to solve this.
Managed to solve this by open the permission for C:\Windows\Temp folder, due to IIS user no permission to upload file to this temp folder before move to the desire folder.
Hope this solution can help, whoever facing this problem.

What is even ID when there is uploaded file in FTP IIS 8

I need an Event ID when there is someone who uploads file in my "FTP Server on IIS 8" so I can run a PowerShell script.
I have multiple remote sites that are sending files every time and I want to save automatically the data that they are uploading in my database I already created the program on it and its working but I can't add the PowerShell script in task scheduler because I don't know when it will be triggered.
Can someone help me to solve this?
Thank you in advance.

Getting multiple 404 for Copy_of_Facebook_Ad_Untitled_Design_1.png

I am getting multiple 404 error for Copy_of_Facebook_Ad_Untitled_Design_1.png.
Can anybody please tell me what this .png file is for? How to resolve this?
Any help will be appreciated.
Thanks
Generally the 404 http error comes when the requested asset or file is not found in server. Looking at the console image I would say somewhere in your theme that particular cdn link of the image has been used which is not a valid link.
With out looking the code or knowing the theme name it's difficult to say what it is for. If you are not sure where it has been used then search for the file in your code base and remove it or provide a correct cdn link

Yii framework, link doesnt redirect to server

I have some problem in Yii Link. My application works fine in localhost but i have move it into server. All the link in server is redirecting to localhost. Can anybody help me out in this situation? Should I have to add something more in configuration file. Thanks in Advance.
Did you use CHtml::link() to create your link? And if you've done it so for the url did you provide an array as follow:
array('Controller/Action', 'param'=>value)
Example:
array('post/list', 'page'=>3)
At the end you'll obtain:
CHtml::link("your text link", array('post/list', 'page'=>3));
(I'm asking it because if you've written every link in hard, it's normal to have each link redirecting to localhost!)

CKFinder Upload Permissions Issue

Afternoon,
I have been working with CKEditor and CKFinder for the last few days and it all worked locally. Once I put it live in all aspects it worked except when attempting to upload a .pdf file to the server via the Link -> Upload tab.
The error that I receive is "The requested resource type is not valid". I have set the folders that it is uploading to, to 777 and I have made sure that the Resource type of Files also allows for the extensions of .pdf in config.php of CKFinder.
This error is stopping me from completion of my project and I really am out of things to try any ideas/ work arounds would be brilliant.
One possible solution was to use KCFinder which I was told would work but my boss said that was not an option unfortunately.
The problem seems to have been an out dated version of CKFinder and I fiddled with the config file and made sure that the $baseUrl and $baseDir followed the rules in the comments. Prior to that I think my $baseUrl did not have the '/' at the beginning of it and now does. The problem lies in the config.php file in CKFinder for anyone else that has the problem.
If the message is "the resource type is not valid" then it's not a permissions issue, but instead that you have renamed the resource types and so it doesn't initialize properly.
If you already have a license to CKFinder you should post this kind of questions at the forums or through the support channel.